folder/Maildir: ignore dot files

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-12-05 12:49:41 +01:00
parent 4a06c2af24
commit 452ada330a

View File

@ -163,6 +163,8 @@ class MaildirFolder(BaseFolder):
date_excludees = {}
for dirannex, filename in files:
if filename.startswith('.'):
continue # Ignore dot files.
# We store just dirannex and filename, ie 'cur/123...'
filepath = os.path.join(dirannex, filename)
# Check maxsize if this message should be considered.