/head: changeset 21

More bugfixes
This commit is contained in:
jgoerzen
2002-06-20 15:17:20 +01:00
parent 9eff85dd0c
commit fd4ad59286
2 changed files with 8 additions and 5 deletions

View File

@ -39,6 +39,9 @@ class IMAPFolder(BaseFolder):
response = self.imapobj.status(self.getfullname(), ('MESSAGES'))[1][0]
result = imaputil.imapsplit(response)[1]
maxmsgid = long(imaputil.flags2hash(result)['MESSAGES'])
if (maxmsgid < 1):
# No messages? return.
return
# Now, get the flags and UIDs for these.
response = self.imapobj.fetch('1:%d' % maxmsgid, '(FLAGS UID)')[1]