aerc/worker
Reto Brunner 3e7e236f50 notmuch: avoid stale DBs
Opening a notmuch DB gives you a snapshot of the stage at that specific time.
Prior to this, we only reopened the DB upon writing.
However, if say a mail sync program like offlineimap is fetching new mail,
we would never pick it up.

This commit caches a db for a while, so that we don't generate too much overhead
and does a reconnect cycle after that.

I hardcoded a value as I don't think that having an option would be beneficial.
Any write operation (meaning reading mail) anyhow flushes the DB by necessity.
(we need to close to commit tag changes, which changing the read state is)
2020-02-16 10:41:10 -05:00
..
handlers Register worker in init. 2019-07-19 15:37:55 -04:00
imap imap: emit messageinfo when changing read state. 2020-01-24 10:51:09 -05:00
lib worker/lib/parse: be more tolerant with parsing email addresses 2020-02-06 14:38:55 -05:00
maildir Add labels to index format (%g) 2019-12-27 10:20:29 -07:00
notmuch notmuch: avoid stale DBs 2020-02-16 10:41:10 -05:00
types FetchBodyParts: decode source in the workers 2020-01-05 16:02:45 -05:00
handler_notmuch.go Add notmuch backend 2019-08-08 10:10:34 +09:00
worker.go Register worker in init. 2019-07-19 15:37:55 -04:00
worker_enabled.go Register worker in init. 2019-07-19 15:37:55 -04:00