/head: changeset 92

Made several fixes for 2.0.8
This commit is contained in:
jgoerzen
2002-07-11 04:31:39 +01:00
parent f8c2be1df7
commit 120076256f
3 changed files with 36 additions and 18 deletions

View File

@@ -106,9 +106,17 @@ class MaildirFolder(BaseFolder):
if flagmatch:
flags = [x for x in flagmatch.group(1)]
flags.sort()
self.messagelist[uid] = {'uid': uid,
'flags': flags,
'filename': file}
if 'T' in flags:
# Message is marked for deletion; just delete it now.
# Otherwise, the T flag will be propogated to the IMAP
# server, and then expunged there, and then deleted here.
# Might as well just delete it now, to help make things
# more robust.
os.unlink(file)
else:
self.messagelist[uid] = {'uid': uid,
'flags': flags,
'filename': file}
def getmessagelist(self):
return self.messagelist