Jani Nikula <jani at nikula.org> wrote: >Jacek Generowicz <jacek.generowicz at cern.ch> writes: > >> Hello, >> >> Would you have any advice on how to construct a notmuch-poll script >> that would work well in concert with OfflineIMAP? In particlular, >how >> can you avoid having to re-issue the IMAP account passwords?
>> Any words of wisdom? > >Offlineimap supports running hooks after syncing. Check if SIGUSR1 does >that too. Then you could run notmuch new in the post sync hook. > >Also, notmuch new supports pre-new and post-new hooks. You could start >or SIGUSR1 offlineimap in the pre-new hook. See man notmuch-hooks for Offlineimap hooks work nicely for running notmuch scripts, i run it this way. Sending Sigusr1 will invoke that too, but I don't think that would be needed. It's mostly for peole running OfflineMap as a daemon.... -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.