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'.
This commit is contained in:
Nikolaus Schulz 2007-11-02 11:26:20 +00:00
parent 1d89f59b53
commit 9e70e576af
1 changed files with 2 additions and 5 deletions

View File

@ -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)