summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-04-30 12:28:25 -0300
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-04-30 12:28:25 -0300
commit427fefd7856bd31d5e4f5ddf42b6b88c397c39d1 (patch)
tree328a8ac654b457af55e456a0dc889b8866d663d1
parente007afe99c6081ba25626730d60d109168ed8747 (diff)
#337 Removed email name validation
-rw-r--r--service/pixelated/maintenance.py7
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