mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-03-12 15:52:50 +00:00
_archive_imap() used SSL only if the 'imaps://' url scheme was all lowercase.
Fixed.
This commit is contained in:
parent
ce02aba226
commit
77481169d8
1 changed files with 1 additions and 1 deletions
|
@ -1347,7 +1347,7 @@ def _archive_imap(mailbox_name, final_archive_name):
|
||||||
unexpected_error("No imap password specified")
|
unexpected_error("No imap password specified")
|
||||||
imap_password = getpass.getpass('IMAP password: ')
|
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)
|
vprint("establishing secure connection to server %s" % imap_server)
|
||||||
imap_srv = imaplib.IMAP4_SSL(imap_server)
|
imap_srv = imaplib.IMAP4_SSL(imap_server)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue