/head: changeset 90

Commited changes for 2.0.6
This commit is contained in:
jgoerzen
2002-07-10 12:18:07 +01:00
parent bd9873632c
commit 097d30e987
7 changed files with 153 additions and 26 deletions

View File

@ -59,8 +59,6 @@ class IMAPFolder(BaseFolder):
def cachemessagelist(self):
imapobj = self.imapserver.acquireconnection()
try:
# Needed for fetch below
imapobj.select(self.getfullname(), readonly = 1)
self.messagelist = {}
response = imapobj.status(self.getfullname(), '(MESSAGES)')[1][0]
result = imaputil.imapsplit(response)[1]
@ -69,6 +67,8 @@ class IMAPFolder(BaseFolder):
# No messages? return.
return
# Needed for fetch below
imapobj.select(self.getfullname(), readonly = 1)
# Now, get the flags and UIDs for these.
response = imapobj.fetch('1:%d' % maxmsgid, '(FLAGS UID)')[1]
finally: