/head: changeset 20

Fixed several bugs in imaplib, particularly with regard to read()
This commit is contained in:
jgoerzen
2002-06-20 15:09:19 +01:00
parent 036b3d10b6
commit 9eff85dd0c
4 changed files with 17 additions and 6 deletions

View File

@@ -76,14 +76,14 @@ class MaildirFolder(BaseFolder):
nouidcounter -= 1
else:
uid = long(uidmatch.group(1))
flagmatch = re.search(':.*2,([A-Z]+)')
flagmatch = re.search(':.*2,([A-Z]+)', messagename)
flags = []
if flagmatch:
flags = [f for x in flagmatch.group(1)]
flags = [x for x in flagmatch.group(1)]
flags.sort()
self.messagelist[uid] = {'uid': uid,
'flags': flags,
'filename': messagename}
'filename': file}
def getmessagelist(self):
return self.messagelist