Menu

#5 Imap folders are not created when uploading files

open
nobody
Program (7)
5
2010-11-27
2010-11-27
Anonymous
No

Hi,
Can there be a facility added so that the imap folders are created in Gmail while an new folder is given in the upload mbox name.
I get this error currently

1/4 4.6 kB Hai hello - NG ([TRYCREATE] Folder doesn't exist. (Failure))

Discussion

  • Anonymous

    Anonymous - 2011-03-08

    I have the same problem... I tried creating labels corresponding to each folder but it didn't help.
    please help us solve this issue!

     
  • Josep Pujadas-Jubany

    I made a small modification to create folders at IMAP account and mark the e-mails as Seen:

    diff imap_upload.py imap_upload.py-original
    300,301c300
    < self.imap.create(self.box)
    < return self.imap.append(self.box, '\Seen', delivery_time, message)
    ---
    > return self.imap.append(self.box, [], delivery_time, message)

    It's an incomplete hack because it assumes that folder doesn't exist at IMAP account.

    Regards,

    Josep Pujadas-Jubany

     

Log in to post a comment.