mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-01-03 05:34:58 +00:00
IMAP: only check for \Deleted in PERMANENTFLAGS if mailbox isn't read-only.
This spewed an error when --dry-running.
This commit is contained in:
parent
775952ec98
commit
622c0105ea
1 changed files with 1 additions and 1 deletions
|
@ -1555,7 +1555,7 @@ def imap_smart_select(srv, mailbox):
|
|||
if result != 'OK':
|
||||
unexpected_error("selecting '%s' failed; server says: '%s'." \
|
||||
% (mailbox, response[0]))
|
||||
if not options.copy_old_mail:
|
||||
if not roflag:
|
||||
# Sanity check that we don't silently fail to delete messages.
|
||||
# As to the following indices: IMAP4.response(key) returns
|
||||
# a tuple (key, ['<all_items>']) if the key is found, (key, [None])
|
||||
|
|
Loading…
Reference in a new issue