Removed redundant check if imap login was succesful, since IMAP4.login then

raises an exception.
This commit is contained in:
Nikolaus Schulz 2006-11-01 20:23:44 +00:00
parent c5f194f3ec
commit d79da0ae99
1 changed files with 0 additions and 1 deletions

View File

@ -1322,7 +1322,6 @@ def _archive_imap(mailbox_name, final_archive_name):
result, response = imap_srv.login_cram_md5(imap_username, imap_password)
except imaplib.IMAP4.error:
result, response = imap_srv.login(imap_username, imap_password)
if result != 'OK': unexpected_error("authentication failure")
vprint("logged in to server as %s" % imap_username)
result, response = imap_srv.select(imap_folder)