config for ideal setup?
nicolas.s-dev at laposte.net
Thu Sep 29 07:32:27 BST 2016
On Thu, Sep 29, 2016 at 10:35:59AM +0800, Paul Wise wrote:
> On Thu, 2016-09-29 at 02:10 +0200, Nicolas Sebrecht wrote:
> > IDLE is supported while not fully stable. Syncing local changes
> > (Maildir) via inotify/fanotify/other is not supported.
> I see, so I should consider offlineimap a backup tool only and
> consequently only make changes to the mail store via IMAP/etc.
In offlineimap, usually few folders are in IDLE mode. I think it's
possible to get near to what you need:
1. Start offlineimap in IDLE mode.
2. Create a script triggered by inotify/whatever.
The script in (2) would:
a) Stop the IDLE instance.
b) Start a full sync.
c) Restart the IDLE instance.
> > Not supported.
> Do you plan to add this? It would be exceptionally handy for big mail
> stores, the only time a full sync would be needed is at boot time.
I don't plan anymore features for offlineimap. I'm still merging
patches and pull requests.
> > In IDLE mode, hooks are started for each new sync.
> It seems the hooks run synchronously, offlineimap pauses until they finish?
> > No. Offlineimap has been always considered a syncer. However, it's
> > possible to get this done by using a script outside of offlineimap. The
> > script has to move the new emails from the remote out of the maildir
> > handled by offlineimap.
> I see, thanks for the tip.
You're welcome. ,-)
More information about the OfflineIMAP-project