Hooks and multiple accounts.

David Soulayrol david.soulayrol at gmail.com
Tue May 3 09:40:31 BST 2011


I'm using offlineimap with imapfilter and mailcheck to handle all my
mailboxes. When I only had one account configured, I used to call
imapilter from the presynchook and mailcheck from the postsynchook.
Now that offlineimap is configured with more accounts and since they
are handled in parallel, I can't be sure that imapfilter will have
processed everything before one account is being synchronized, or that
mailcheck will provide up-to-date information.

I resolved the mailcheck part of the problem by calling it from each
account with specific dynamically created configuration. Will I have
to do the same with imapfilter? Or Would it be a good idea to add to
offlineimap a global presynchook? How do you guys proceed with this?

More information about the OfflineIMAP-project mailing list