diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-04-30 10:47:33 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-04-30 10:47:33 +0200 |
commit | f0b9672a26b23c7440d915890159d6e4987d28ce (patch) | |
tree | adc36c596e5e87a4c4f3d653a8a0aeccf081670f /service/pixelated | |
parent | 42321f2b6956370d00ab66b60451c51f718c52b0 (diff) |
Removed check for mail file names.
- Issue #337
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/maintenance.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/service/pixelated/maintenance.py b/service/pixelated/maintenance.py index 5f5719f5..8e837c88 100644 --- a/service/pixelated/maintenance.py +++ b/service/pixelated/maintenance.py @@ -156,8 +156,6 @@ def load_mails(args, mail_paths): for root, dirs, files in os.walk(path): mbx = account.getMailbox('INBOX') for file_name in files: - if not is_mail_file_name_valid(file_name): - continue with open(join(root, file_name), 'r') as email_file: m = email.message_from_file(email_file) flags = ("\\RECENT",) @@ -188,10 +186,6 @@ def flush_to_soledad(args, finalize): return args -def is_mail_file_name_valid(file_name): - return re.match('mbox[0-9]+$', file_name) - - def dump_soledad(args): leap_session, soledad = args |