aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2007-11-02 11:26:20 +0000
committerNikolaus Schulz <microschulz@web.de>2007-11-02 11:26:20 +0000
commit9e70e576aff5b64c2afefa8a92917b97ddfff052 (patch)
tree873f68a93c8da86b7d3cdc32ab31586f1f53e70e
parent1d89f59b53bffc4b709201f2f8bcb202ceca1269 (diff)
downloadarchivemail-9e70e576aff5b64c2afefa8a92917b97ddfff052.tar.gz
archivemail-9e70e576aff5b64c2afefa8a92917b97ddfff052.tar.bz2
archivemail-9e70e576aff5b64c2afefa8a92917b97ddfff052.zip
add_status_headers_imap():
* mark message 'old' iff it's not \Recent (drop requirement that it's unread; this probably confused mutt's message status flags in the index with mbox status flags). * a message not \Seen and not \Recent was marked as 'N', but there is no such thing like an mbox status flag 'N'.
-rwxr-xr-xarchivemail.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/archivemail.py b/archivemail.py
index 4822a32..fb3a72f 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -871,11 +871,8 @@ def add_status_headers_imap(message, flags):
pass # is this Status: D ?
else:
pass # no whingeing here, although it could be a good experiment
- if flags.count("\\Seen") == 0:
- if flags.count("\\Recent") == 1:
- status = status + "N"
- else:
- status = status + "O"
+ if flags.count("\\Recent") == 0:
+ status = status + "O"
# As with maildir folders, preserve Status and X-Status headers
# if they exist (they shouldn't)