Sync back local emails modification

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


Mario D'Amore <kidpixo at gmail.com> writes:

[...]

> I just put the script on github, you are free to contribute :
> https://github.com/kidpixo/pymimedetacher

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.

-- 
Konubinix
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: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20151024/77f0b081/attachment-0003.sig>


More information about the OfflineIMAP-project mailing list