docker-offlineimap/offlineimap/folder
Sebastian Spaeth 0af9ef70a7 Factor out SQL retries
Test if sqlite is multithreading-safe and bail out if not. sqlite
versions since at least 2008 are.
But, as it still causes errors when 2
threads try to write to the same connection simultanously (We get a
"cannot start transaction within a transaction" error), we protect
writes with a per class, ie per-connection lock. Factor out the retrying
to write when the database is locked.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-05-07 13:29:11 +02:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Experimental LocalStatus stored in SQLite database 2011-05-07 13:29:11 +02:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py Merge branch 'ss/folder-cleanup-getmessage' into next 2011-04-27 22:52:17 +02:00
LocalStatus.py Use self.doautosave rather than self.dofsync 2011-05-07 13:29:11 +02:00
LocalStatusSQLite.py Factor out SQL retries 2011-05-07 13:29:11 +02:00
Maildir.py folder/Maildir: Make use of helper functions 2011-04-11 18:57:25 +02:00
UIDMaps.py Merge branch 'ss/corrupted-uidmap-file' into next 2011-05-02 19:09:52 +02:00