Oswald Buddenhagen <oswald.buddenha...@gmx.de> writes: > as long as you don't create some kind of loop (e.g., pushing to the folder you > got the mails from), it should be fine.
Hmm, it's not clear to me. I certainly want to sync my localhost Maildir/inbox with the remote IMAP's server INBOX. > so maybe what you want instead is to simply use mbsync to get the mail, > and after syncing run the processor over the already synced maildir (and > then sync again to push any modifications)? Well, I'm not sure how to process email after fetching/syncing it with mbsync? > i don't know how else mbsync could be useful in this scenario. Getmail is great to fetch mail from remote IMAP server, process it and deliver, but it misses syncing feature and that's why I want to use mbsync. Otoh, mbsync is great when syncing is concerned, but it misses option to process mail. > maybe illustrate the precise flows of some example messages with different > life cycles. OK. Let's assume several scenarios: a) new, regular email msg has arrived in my INBOX at the remote server, it's not spam, so I simply want to fetch it and deliver to my /gour/inbox Maildir folder on the desktop machine. I would like to fetch it via getmail and see within my mu4e mailer. After being read it can be either deleted or archived into local archive folder. Invoking mbsync should sync my local /gour/inbox with the remote IMAP server and delete message from the IBOX folder. b) same as in a), but this time I reply to the message and want that after launching mbsync, the message is kept as 'read' in bot my /gour/inbox local folder as well as in INBOX folder, as well as to have copy of reply, both in /inbox/sent as local folder as well as in 'Sent' folder of IMAP remote server. The copy of messages in /gour/inbox and /gour/sent would be archived/re-filed sooner or later and with the beginning of new year, put into separate folder, eg. archive_2015. Let me add that, all archive* folders are not meant to be synced with remote IMAP server. c) saem as in a), but this time the message is spam which was not caught by server's filter and it's in either INBOX or INBOX.lists folder. I fetch mail with getmail which invokes bogofilter/clamav and the message is marked as spam and put in my local /inbox/spam folder. Invoking mbsync should sync the new state with the remote IMAP server by either copy message into INBOX.spam or remove it from INBOX if I deleted it locally. 4) the new email message has arrive in my INBOX, but this time I access it first from my mobile phone and write short reply before getmail's cronjob got opportunity to fetch it. Later, I fetch mail via getmail, see the reafd message in my /gour/inbox as well as reply in /gour/sent. Either deleting the message or archiving it, invoking mbsync should put everything in order by creating up-to-date state between local and remote IMAP server. At the moment, I use only mbsync to fetch mail, but my intention is to plug getmail into it in order to take its filtering/processing capabilites and still have everything synced as now by using mbsync. Does it make sense? > ps: you dropped the list from cc ... was that intentional? Nope. my mistake. Sincerely, Gour -- While contemplating the objects of the senses, a person develops attachment for them, and from such attachment lust develops, and from lust anger arises. ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel