docker-offlineimap/offlineimap/folder
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
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py folder: Implement helper functions uidexists() and getmessageuidlist() 2011-03-11 18:59:20 +01:00
Gmail.py Remove unneeded imports of UIBase 2011-02-09 19:29:01 +01:00
IMAP.py Convert rfc822 module to email module 2011-03-13 20:30:35 +01:00
LocalStatus.py LocalStatus: Don't ignore Exceptions on os.fsync 2011-01-14 19:25:11 +01:00
Maildir.py Save ui as self.ui in folder/Base class 2011-01-05 19:24:00 +01:00
UIDMaps.py Remove unneeded imports of UIBase 2011-02-09 19:29:01 +01:00