diff options
author | Nikolaus Schulz <microschulz@web.de> | 2007-11-09 14:33:13 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2007-11-09 14:33:13 +0000 |
commit | e0c75a100141f4cb175d088a63f94831f308b431 (patch) | |
tree | 78709859372a4fdd0a44b1d3de70c8d3419bc9fc | |
parent | 5db3d2fe63941be9e3933abc9e1536eb83273af9 (diff) | |
download | archivemail-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.
-rwxr-xr-x | archivemail.py | 3 |
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: |