docker-offlineimap/offlineimap/folder
Sebastian Spaeth 856982a4e6 Throw OfflineImapError when we try to request an inexistant message
During a sync run, someone might remove or move IMAP messages. As we
only cache the list of UIDs in the beginning, we might be requesting
UIDs that don't exist anymore. Protect folder.IMAP.getmessage() against
the response that we get when we ask for unknown UIDs.

Also, if the server responds with anything else than "OK", (eg. Gmail
seems to be saying frequently ['NO', 'Dave I can't let you do that now']
:-) so we should also be throwing OfflineImapErrors here rather than
AssertionErrors.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-06-15 22:17:04 +02:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py refactoring: simplify the semaphorewait logic 2011-05-12 18:30:39 +02:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py Throw OfflineImapError when we try to request an inexistant message 2011-06-15 22:17:04 +02:00
LocalStatus.py Use self.doautosave rather than self.dofsync 2011-05-07 13:29:11 +02:00
LocalStatusSQLite.py cleanup: remove uneeded imports 2011-05-09 22:42:15 +02:00
Maildir.py Simplify Maildir message saving 2011-06-13 16:29:00 +02:00
UIDMaps.py Merge branch 'ss/corrupted-uidmap-file' into next 2011-05-02 19:09:52 +02:00