docker-offlineimap/offlineimap/folder
Nicolas Sebrecht 05c75e8c8d sqlite: open database when we use it rather than at instantiation time
We currently close the database as soon as possible while we handle the status
backend but this is still too early because autorefresh induces looping on this
code block.

Instead of delaying the closing outside of the loop, it's easier to delay the
opening as late as possible (inside the loop). The downside is that the database
is opened/closed more than once when autorefresh is enabled. The good news is
that this make the code much easier.

Fixes regression introduces by 6fb5700.

Reported-by: Łukasz Żarnowiecki <dolohow@outlook.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-05-12 18:51:59 +02:00
..
__init__.py Use "from . import" for relative imports 2012-02-06 17:41:43 +01:00
Base.py conf: newmail_hook is a remote option 2016-05-12 18:04:41 +02:00
Gmail.py Replace calls to long with int calls 2016-05-10 02:53:09 +02:00
GmailMaildir.py Replace calls to long with int calls 2016-05-10 02:53:09 +02:00
IMAP.py Replace xrange with range 2016-05-10 02:53:09 +02:00
LocalStatus.py sqlite: open database when we use it rather than at instantiation time 2016-05-12 18:51:59 +02:00
LocalStatusSQLite.py sqlite: open database when we use it rather than at instantiation time 2016-05-12 18:51:59 +02:00
Maildir.py folder: utime_from_header is for Maildir only 2016-05-11 04:10:13 +02:00
UIDMaps.py Replace calls to long with int calls 2016-05-10 02:53:09 +02:00