aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xarchivemail.py2
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: