introduce hook to track down any change to local Maildirs
#367 aperta il 2 ago 2016
Metriche repository
- Star
- (1765 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.