From 427fefd7856bd31d5e4f5ddf42b6b88c397c39d1 Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Thu, 30 Apr 2015 12:28:25 -0300 Subject: #337 Removed email name validation --- service/pixelated/maintenance.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'service/pixelated/maintenance.py') 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 -- cgit v1.2.3