mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-03-11 23:32:48 +00:00
IMAP: fixed crash by working around python bug #1277098, which is still pending
in python << 2.5.
This commit is contained in:
parent
5db3d2fe63
commit
e0c75a1001
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue