unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* notmuch-poll and OfflineIMAP
@ 2012-04-03 15:27 Jacek Generowicz
  2012-04-03 16:32 ` Jani Nikula
  2012-04-03 20:48 ` Adam Wolfe Gordon
  0 siblings, 2 replies; 5+ messages in thread
From: Jacek Generowicz @ 2012-04-03 15:27 UTC (permalink / raw)
  To: notmuch

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?

The OfflineIMAP docs state that SIGUSR1 forces an immediate resync of
all accounts, so something based around

    kill -SIGUSR1 `cat ~/.offlineimap/pid`

or

    pkill -SIGUSR1 -u `whoami` offlineimap

(with an already-running OfflineIMAP process in autorefresh mode)
could work, but it's not clear to me how to discover when the resync
is done, and sleeping for an arbitrary time before calling 'notmuch
new' seems unsatisfactory.

Any words of wisdom?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-08 22:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 15:27 notmuch-poll and OfflineIMAP Jacek Generowicz
2012-04-03 16:32 ` Jani Nikula
2012-04-08 22:20   ` Sebastian Spaeth
2012-04-03 20:48 ` Adam Wolfe Gordon
2012-04-08 22:26   ` Sebastian Spaeth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).