From 993f85bfa6e5111cf456ca8bac0c2ee46009c9cd Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Thu, 4 Jul 2002 02:00:58 +0100 Subject: [PATCH] /head: changeset 64 Fixed a bug with the status call --- head/offlineimap/folder/IMAP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/head/offlineimap/folder/IMAP.py b/head/offlineimap/folder/IMAP.py index c9be210..0bcd905 100644 --- a/head/offlineimap/folder/IMAP.py +++ b/head/offlineimap/folder/IMAP.py @@ -35,14 +35,14 @@ class IMAPFolder(BaseFolder): return self.visiblename def getuidvalidity(self): - x = self.imapobj.status(self.getfullname(), ('UIDVALIDITY'))[1][0] + x = self.imapobj.status(self.getfullname(), '(UIDVALIDITY)')[1][0] uidstring = imaputil.imapsplit(x)[1] return long(imaputil.flagsplit(uidstring)[1]) def cachemessagelist(self): assert(self.imapobj.select(self.getfullname())[0] == 'OK') self.messagelist = {} - response = self.imapobj.status(self.getfullname(), ('MESSAGES'))[1][0] + response = self.imapobj.status(self.getfullname(), '(MESSAGES)')[1][0] result = imaputil.imapsplit(response)[1] maxmsgid = long(imaputil.flags2hash(result)['MESSAGES']) if (maxmsgid < 1):