diff options
author | Nikolaus Schulz <microschulz@web.de> | 2006-11-01 20:23:44 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2006-11-01 20:23:44 +0000 |
commit | d79da0ae99b5b7533a40d2ab26ef8d5c98ef5305 (patch) | |
tree | b1f00316993b72b9552fd2fd391e5b5d257f692f | |
parent | c5f194f3ecd0170325a8c5aff9bc742c33242131 (diff) | |
download | archivemail-d79da0ae99b5b7533a40d2ab26ef8d5c98ef5305.tar.gz archivemail-d79da0ae99b5b7533a40d2ab26ef8d5c98ef5305.tar.bz2 archivemail-d79da0ae99b5b7533a40d2ab26ef8d5c98ef5305.zip |
Removed redundant check if imap login was succesful, since IMAP4.login then
raises an exception.
-rwxr-xr-x | archivemail.py | 1 |
1 files changed, 0 insertions, 1 deletions
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) |