aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail.py
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2007-11-09 14:33:13 +0000
committerNikolaus Schulz <microschulz@web.de>2007-11-09 14:33:13 +0000
commite0c75a100141f4cb175d088a63f94831f308b431 (patch)
tree78709859372a4fdd0a44b1d3de70c8d3419bc9fc /archivemail.py
parent5db3d2fe63941be9e3933abc9e1536eb83273af9 (diff)
downloadarchivemail-e0c75a100141f4cb175d088a63f94831f308b431.tar.gz
archivemail-e0c75a100141f4cb175d088a63f94831f308b431.tar.bz2
archivemail-e0c75a100141f4cb175d088a63f94831f308b431.zip
IMAP: fixed crash by working around python bug #1277098, which is still pending
in python << 2.5.
Diffstat (limited to 'archivemail.py')
-rwxr-xr-xarchivemail.py3
1 files changed, 3 insertions, 0 deletions
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: