docker-offlineimap/offlineimap/folder
Sebastian Spaeth dc103ab9ce Protect IMAP.getmessage() against dropped connections
If a connection is dropped for some reason while fetching a message, the
imapobj.uid command throws an imapbj.abort() Exception which means we are
supposed to retry. Implement a fail loop that drops the connection, gets a
new one and attempts the command another time.

Remove obsolete comment that we need to catch nonexisting messages. We do
now.

GMail seems to drop connections left and right. This patch is a response to
the reported mail "4E5F8D8C.1020005@gmail.com" by zeek
<ezekiel.das@gmail.com>.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-09-06 19:00:48 +02:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Fix string formatting 2011-08-23 20:58:55 +02:00
Gmail.py Rework undocumented listjoin to create UID sequences 2011-08-23 20:55:28 +02:00
IMAP.py Protect IMAP.getmessage() against dropped connections 2011-09-06 19:00:48 +02:00
LocalStatus.py Make flags a set rather than a list 2011-08-19 18:56:10 +02:00
LocalStatusSQLite.py Fix sqlite upgrade code to use correct API call 2011-09-02 21:59:35 +02:00
Maildir.py Maildir relative paths change was not complete 2011-08-23 20:56:24 +02:00
UIDMaps.py Replaced tabs with spaces to unify python sources 2011-08-16 22:33:19 +02:00