Skip to content

Commit

Permalink
Fixed the create_mailbox() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonabbey committed Jan 14, 2011
1 parent d5e570c commit d7c8ba9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Eudora2Mbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,18 @@ def create_mailbox( mailbox_name, format=None ):

try:
if not format or format=='mbox':
newmailbox = mbox( newfile )
newmailbox = mbox( mailbox_name )
elif format=='maildir':
newmailbox = Maildir( newfile )
newmailbox = Maildir( mailbox_name )
elif format=='mmdf':
newmailbox = MMDF( newfile )
newmailbox = MMDF( mailbox_name )
elif format=='mh':
newmailbox = MH( newfile )
newmailbox = MH( mailbox_name )
elif format=='babyl':
newmailbox = Babyl( newfile )
newmailbox = Babyl( mailbox_name )
except IOError, ( errno, strerror ):
newmailbox = None
return EudoraLog.fatal( P + ': cannot open "' + newfile + '", ' + strerror )
return EudoraLog.fatal( P + ': cannot open "' + mailbox_name + '", ' + strerror )

return newmailbox

Expand Down

0 comments on commit d7c8ba9

Please sign in to comment.