Sync back local emails modification

Samuel Loury konubinixweb at
Sat Oct 24 15:35:41 BST 2015

Mario D'Amore <kidpixo at> writes:


> I just put the script on github, you are free to contribute :

Thank you for sharing. I already submitted a pull request :-).


> In principle I would like to leave each mail in the same state it was, I
> don't want to find a bunch of random unread.
> But thinking about it, it make sense because I create a new mail message...
> Actually, this is the normal behaviour opening the mail with
> src_mbox = mailbox.Maildir('maildir-mbox', factory=mailbox.MaildirMessage)
> see [1].
> I use  to use "factory=None" exactly for this reason, see discussion here
> [2]

I tried changing the name of the processed email. OfflineImap still
don't send it back to the server. I did not try putting it into the new
folder though.

GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list