From 622c0105eadc535cf48412436bb7429ace75e939 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Tue, 8 Apr 2008 23:06:10 +0000 Subject: IMAP: only check for \Deleted in PERMANENTFLAGS if mailbox isn't read-only. This spewed an error when --dry-running. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ['']) if the key is found, (key, [None]) -- cgit v1.2.3