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
|
@ -1555,7 +1555,7 @@ def imap_smart_select(srv, mailbox):
|
||||||
if result != 'OK':
|
if result != 'OK':
|
||||||
unexpected_error("selecting '%s' failed; server says: '%s'." \
|
unexpected_error("selecting '%s' failed; server says: '%s'." \
|
||||||
% (mailbox, response[0]))
|
% (mailbox, response[0]))
|
||||||
if not options.copy_old_mail:
|
if not roflag:
|
||||||
# Sanity check that we don't silently fail to delete messages.
|
# Sanity check that we don't silently fail to delete messages.
|
||||||
# As to the following indices: IMAP4.response(key) returns
|
# As to the following indices: IMAP4.response(key) returns
|
||||||
# a tuple (key, ['<all_items>']) if the key is found, (key, [None])
|
# a tuple (key, ['<all_items>']) if the key is found, (key, [None])
|
||||||
|
|
Loading…
Reference in New Issue