folder: Maildir: add comments about FMD5 issues
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
6b28071b0f
commit
932e826d7c
@ -135,6 +135,13 @@ class MaildirFolder(BaseFolder):
|
|||||||
foldermatch = folderstr in filename
|
foldermatch = folderstr in filename
|
||||||
# If there was no folder MD5 specified, or if it mismatches,
|
# If there was no folder MD5 specified, or if it mismatches,
|
||||||
# assume it is a foreign (new) message and ret: uid, fmd5 = None, None
|
# assume it is a foreign (new) message and ret: uid, fmd5 = None, None
|
||||||
|
|
||||||
|
# XXX: This is wrong behaviour: if FMD5 is missing or mismatches, assume
|
||||||
|
# the mail is new and **fix UID to None** to avoid any conflict.
|
||||||
|
|
||||||
|
# XXX: If UID is missing, I have no idea what FMD5 can do. Should be
|
||||||
|
# fixed to None in this case, too.
|
||||||
|
|
||||||
if foldermatch:
|
if foldermatch:
|
||||||
uidmatch = re_uidmatch.search(filename)
|
uidmatch = re_uidmatch.search(filename)
|
||||||
if uidmatch:
|
if uidmatch:
|
||||||
|
Loading…
Reference in New Issue
Block a user