Offlineimap -- push changes to all folders; only pull from INBOX folder

Posted by g33kz0r on Super User See other posts from Super User or by g33kz0r
Published on 2012-09-20T18:28:35Z Indexed on 2012/09/21 21:43 UTC
Read the original article Hit count: 235

Filed under:
|
|
|
|

I would like to be able to set up offlineimap to do the following

  1. Sync Remote/INBOX -> Local
  2. Sync Local/Maildirs/* -> Remote

Possible?

The use case here is:

  1. I download all new mail from my remote IMAP INBOX folder with offlineimap.
  2. offlineimap's posthook command calls a custom python script which does junk filtering, then sorts and categorizes my mail in the local INBOX folder to various local maildirs based on sender, etc.
  3. I read my mail with mutt and perhaps do some more categorization.
  4. ?

Step 4 is what I'm after. I want offlineimap to push my local changes (categorization, filtering, deletion in the case of spam) back to the various folders on the imap server, but as you can see, there's no need for me to be pulling any changes from folders other than Remote/INBOX, as no changes happen on the IMAP server itself. I hope that's a clear explanation of the problem.

© Super User or respective owner

Related posts about email

Related posts about python