Switch to imaplibutil Internaldate2Epoch

This commit is contained in:
John Goerzen 2007-07-04 18:51:57 +01:00
parent 91392b7578
commit 1b9fa9ff9a

View File

@ -1,5 +1,5 @@
# IMAP folder support
# Copyright (C) 2002-2004 John Goerzen
# Copyright (C) 2002-2007 John Goerzen
# <jgoerzen@complete.org>
#
# This program is free software; you can redistribute it and/or modify
@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from Base import BaseFolder
from offlineimap import imaputil, imaplib
from offlineimap import imaputil, imaplib, imaplibutil
from offlineimap.ui import UIBase
from offlineimap.version import versionstr
import rfc822, time, string, random, binascii, re
@ -98,7 +98,7 @@ class IMAPFolder(BaseFolder):
else:
uid = long(options['UID'])
flags = imaputil.flagsimap2maildir(options['FLAGS'])
rtime = imaplib.Internaldate2epoch(messagestr)
rtime = imaplibutil.Internaldate2epoch(messagestr)
self.messagelist[uid] = {'uid': uid, 'flags': flags, 'time': rtime}
def getmessagelist(self):