diff options
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 |