diff options
author | Nikolaus Schulz <microschulz@web.de> | 2008-04-08 23:06:10 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2008-04-08 23:06:10 +0000 |
commit | 622c0105eadc535cf48412436bb7429ace75e939 (patch) | |
tree | dab7b1710255e0b3ce1bbebb0414e5bc0123ef50 | |
parent | 775952ec98095c1ea3fe5dbe87197cd4e6f924eb (diff) | |
download | archivemail-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-x | archivemail.py | 2 |
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]) |