diff --git a/src/apps/storetool/bongo/storetool/MailCommands.py b/src/apps/storetool/bongo/storetool/MailCommands.py index 435fa10..0202c5c 100644 --- a/src/apps/storetool/bongo/storetool/MailCommands.py +++ b/src/apps/storetool/bongo/storetool/MailCommands.py @@ -38,8 +38,8 @@ class MailImportCommand(Command): fd = open(file) mailstore = mailbox.PortableUnixMailbox(fd, email.message_from_file) - elif type == "maildir": - mailstore = mailbox.Maildir(file, email.message_from_file) + elif type == "maildir": + mailstore = mailbox.Maildir(file, email.message_from_file) for msg in mailstore: data = msg.as_string(True)