From d79da0ae99b5b7533a40d2ab26ef8d5c98ef5305 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Wed, 1 Nov 2006 20:23:44 +0000 Subject: Removed redundant check if imap login was succesful, since IMAP4.login then raises an exception. --- archivemail.py | 1 - 1 file changed, 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index 71f40ba..6a0308f 100755 --- a/archivemail.py +++ b/archivemail.py @@ -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) -- cgit v1.2.3