From 77481169d87566b52d655beae72647f87e78a2ff Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Sat, 19 Jan 2008 00:04:01 +0000 Subject: _archive_imap() used SSL only if the 'imaps://' url scheme was all lowercase. Fixed. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index a60834d..98644bf 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1347,7 +1347,7 @@ def _archive_imap(mailbox_name, final_archive_name): unexpected_error("No imap password specified") imap_password = getpass.getpass('IMAP password: ') - if mailbox_name[:5] == 'imaps': + if mailbox_name[:5].lower() == 'imaps': vprint("establishing secure connection to server %s" % imap_server) imap_srv = imaplib.IMAP4_SSL(imap_server) else: -- cgit v1.2.3