From 9e70e576aff5b64c2afefa8a92917b97ddfff052 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Fri, 2 Nov 2007 11:26:20 +0000 Subject: [PATCH] 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'. --- archivemail.py | 7 ++----- 1 file 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)