diff options
author | Reto Brunner <reto@labrat.space> | 2020-02-15 09:29:54 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-02-16 10:41:10 -0500 |
commit | 3e7e236f50265d53528b3168c192a0254413db06 (patch) | |
tree | c768d1d593d9721936debe708826997003cddd4d /doc | |
parent | 72f55b857b90af85625defd5f048fbb23bbc4595 (diff) | |
download | aerc-3e7e236f50265d53528b3168c192a0254413db06.tar.gz |
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)
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions