OfflineIMAP/offlineimap

introduce hook to track down any change to local Maildirs

Open

#367 opened on Aug 2, 2016

View on GitHub
 (13 comments) (1 reaction) (1 assignee)Python (1,765 stars) (373 forks)batch import
featuregood first issueneed contributor!

Description

Some programs like "mu-index" will consume the Maildir that offlineimap writes out. Currently many of them have to scan the entire Maildir on every invocation to find what files have changed.

It would be much more efficient if offlineimap could write a plain text file like:

NEW <path>
MODIFIED <path>
CHANGED <path>

And these other tools could simply atomically move that file out of the way (offlineimap would have to re-open the file for every write) and consume the file list.

If you're not interested in hacking this up I'd be interested in doing it myself with my limited experience of how offlineimap works, pointers about where in the code to put this would be most welcome.

Contributor guide