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:
Nikolaus Schulz 2008-04-08 23:06:10 +00:00
parent 775952ec98
commit 622c0105ea
1 changed files with 1 additions and 1 deletions

View File

@ -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])