1
0
Fork 0
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:
Nikolaus Schulz 2008-01-19 00:04:01 +00:00
parent ce02aba226
commit 77481169d8

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: