mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-01-03 05:34:58 +00:00
Removed redundant check if imap login was succesful, since IMAP4.login then
raises an exception.
This commit is contained in:
parent
c5f194f3ec
commit
d79da0ae99
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue