From 1fb8ba96310b55cf5ea8c3a43bbe994915d3e49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=C5=BBarnowiecki?= Date: Sun, 8 May 2016 15:12:56 +0200 Subject: [PATCH] Rename email.Parser to email.parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Łukasz Żarnowiecki Signed-off-by: Nicolas Sebrecht --- offlineimap/emailutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/emailutil.py b/offlineimap/emailutil.py index 0c732e2..5387919 100644 --- a/offlineimap/emailutil.py +++ b/offlineimap/emailutil.py @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import email -from email.Parser import Parser as MailParser +from email.parser import Parser as MailParser def get_message_date(content, header='Date'): """Parses mail and returns resulting timestamp.