From e0c75a100141f4cb175d088a63f94831f308b431 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Fri, 9 Nov 2007 14:33:13 +0000 Subject: IMAP: fixed crash by working around python bug #1277098, which is still pending in python << 2.5. --- archivemail.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archivemail.py b/archivemail.py index 91bc322..8810cc1 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1349,6 +1349,9 @@ def _archive_imap(mailbox_name, final_archive_name): result, response = imap_srv.login(imap_username, imap_password) roflag = options.dry_run or options.copy_old_mail + # Work around python bug #1277098 (still pending in python << 2.5) + if not roflag: + roflag = None if roflag: vprint("examining imap folder '%s' read-only" % imap_folder) else: -- cgit v1.2.3