diff options
-rw-r--r-- | service/pixelated/maintenance.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/service/pixelated/maintenance.py b/service/pixelated/maintenance.py index 8a5bac57..77d46be0 100644 --- a/service/pixelated/maintenance.py +++ b/service/pixelated/maintenance.py @@ -156,8 +156,7 @@ def load_mails(args, mail_paths): for root, dirs, files in os.walk(path): mbx = account.getMailbox('INBOX') for file_name in files: - if is_mail_file_name_valid(file_name): - yield add_message_into_mailbox(join(root, file_name), mbx) + yield add_message_into_mailbox(join(root, file_name), mbx) defer.returnValue(args) return @@ -191,10 +190,6 @@ def add_message_into_mailbox(file_path, mbx): return mbx.addMessage(m.as_string(), flags=flags, notify_on_disk=False) -def is_mail_file_name_valid(file_name): - return re.match('mbox[0-9]+$', file_name) - - def dump_soledad(args): leap_session, soledad = args |