aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2008-04-08 23:06:10 +0000
committerNikolaus Schulz <microschulz@web.de>2008-04-08 23:06:10 +0000
commit622c0105eadc535cf48412436bb7429ace75e939 (patch)
treedab7b1710255e0b3ce1bbebb0414e5bc0123ef50
parent775952ec98095c1ea3fe5dbe87197cd4e6f924eb (diff)
downloadarchivemail-622c0105eadc535cf48412436bb7429ace75e939.tar.gz
archivemail-622c0105eadc535cf48412436bb7429ace75e939.tar.bz2
archivemail-622c0105eadc535cf48412436bb7429ace75e939.zip
IMAP: only check for \Deleted in PERMANENTFLAGS if mailbox isn't read-only.
This spewed an error when --dry-running.
-rwxr-xr-xarchivemail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archivemail.py b/archivemail.py
index 5760f56..9c7be1c 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -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])