From d549cbdac9f93fdd921b32856b0c9687774139e4 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sat, 7 Jan 2012 21:34:57 +0100 Subject: [PATCH] Fix code comment on flag stripping Fix code comment that we preserve custom dovecot flags. We discard them. Signed-off-by: Sebastian Spaeth --- offlineimap/folder/Maildir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index 938d47b..714636d 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -295,9 +295,9 @@ class MaildirFolder(BaseFolder): dir_prefix = 'cur' if 'S' in flags else 'new' if flags != self.messagelist[uid]['flags']: - # Flags have actually changed, construct new filename - # Strip off existing infostring (preserving small letter flags that - # dovecot uses) + # Flags have actually changed, construct new filename Strip + # off existing infostring (possibly discarding small letter + # flags that dovecot uses TODO) infomatch = self.re_flagmatch.search(filename) if infomatch: filename = filename[:-len(infomatch.group())] #strip off