diff options
author | Nikolaus Schulz <microschulz@web.de> | 2008-01-19 00:04:01 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2008-01-19 00:04:01 +0000 |
commit | 77481169d87566b52d655beae72647f87e78a2ff (patch) | |
tree | 32677d8a8f7b5d67a0318ec0ccea7ba8fe9c07af | |
parent | ce02aba226a6d96c7f33d7e13297b64e00c7390a (diff) | |
download | archivemail-77481169d87566b52d655beae72647f87e78a2ff.tar.gz archivemail-77481169d87566b52d655beae72647f87e78a2ff.tar.bz2 archivemail-77481169d87566b52d655beae72647f87e78a2ff.zip |
_archive_imap() used SSL only if the 'imaps://' url scheme was all lowercase.
Fixed.
-rwxr-xr-x | archivemail.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |