docker-offlineimap/offlineimap
Sebastian Spaeth 2946a1ea5d Convert rfc822 module to email module
The rfc822 module has been deprecated since python 2.3, and conversion to
the email module is straightforward, so let us do that. rfc822 is
completely gone in python3.

This also fixes a bug that led to offlineimap abortion (but that code path
is apparently usually not exercised so I did not notice:
rfc822|email.utils.parsedate return a tuple which has no named attributes,
but we were using them later in that function. So pass the tuple into a
struct_time() to get named attributes.

While reading the docs, I noticed that email.parsedate returns invalid
daylight savings information (is_dst attribute), and we are using it
anyway. Oh well, the imap server might think the mails are off by an hour
at worst.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-03-13 20:30:35 +01:00
..
folder Convert rfc822 module to email module 2011-03-13 20:30:35 +01:00
repository Merge branch 'ss/debug-folderfilter' into next 2011-03-03 19:07:35 +01:00
ui UIBase: fix regression while deletingflags 2011-03-11 20:20:12 +01:00
__init__.py v6.3.2 2011-02-21 12:26:48 +01:00
accounts.py folder: Implement helper function getmessagecount() 2011-03-10 20:30:19 +01:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
imaplibutil.py Merge branch 'master' into next 2011-03-07 21:55:43 +01:00
imapserver.py Merge branch 'master' into next 2011-03-07 21:55:43 +01:00
imaputil.py Remove over-verbose debug options 2011-03-03 18:23:32 +01:00
init.py Merge branch 'ss/deprecate-current-ui-names' into next 2011-03-06 18:33:29 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Implement true single-threading 2011-01-14 19:25:11 +01:00
threadutil.py threadutil: Don't require the StringIO module 2011-03-11 20:34:33 +01:00