Fix code comment on flag stripping

Fix code comment that we preserve custom dovecot flags. We discard them.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-01-07 21:34:57 +01:00
parent 679977e5d3
commit d549cbdac9

View File

@ -295,9 +295,9 @@ class MaildirFolder(BaseFolder):
dir_prefix = 'cur' if 'S' in flags else 'new' dir_prefix = 'cur' if 'S' in flags else 'new'
if flags != self.messagelist[uid]['flags']: if flags != self.messagelist[uid]['flags']:
# Flags have actually changed, construct new filename # Flags have actually changed, construct new filename Strip
# Strip off existing infostring (preserving small letter flags that # off existing infostring (possibly discarding small letter
# dovecot uses) # flags that dovecot uses TODO)
infomatch = self.re_flagmatch.search(filename) infomatch = self.re_flagmatch.search(filename)
if infomatch: if infomatch:
filename = filename[:-len(infomatch.group())] #strip off filename = filename[:-len(infomatch.group())] #strip off