_archive_imap() used SSL only if the 'imaps://' url scheme was all lowercase.

Fixed.
This commit is contained in:
Nikolaus Schulz 2008-01-19 00:04:01 +00:00
parent ce02aba226
commit 77481169d8
1 changed files with 1 additions and 1 deletions

View File

@ -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: