_archive_imap() used SSL only if the 'imaps://' url scheme was all lowercase.
Fixed.
This commit is contained in:
parent
ce02aba226
commit
77481169d8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue