mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-03-12 07:42:50 +00:00
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:
parent
1d89f59b53
commit
9e70e576af
1 changed files with 2 additions and 5 deletions
|
@ -871,11 +871,8 @@ def add_status_headers_imap(message, flags):
|
||||||
pass # is this Status: D ?
|
pass # is this Status: D ?
|
||||||
else:
|
else:
|
||||||
pass # no whingeing here, although it could be a good experiment
|
pass # no whingeing here, although it could be a good experiment
|
||||||
if flags.count("\\Seen") == 0:
|
if flags.count("\\Recent") == 0:
|
||||||
if flags.count("\\Recent") == 1:
|
status = status + "O"
|
||||||
status = status + "N"
|
|
||||||
else:
|
|
||||||
status = status + "O"
|
|
||||||
|
|
||||||
# As with maildir folders, preserve Status and X-Status headers
|
# As with maildir folders, preserve Status and X-Status headers
|
||||||
# if they exist (they shouldn't)
|
# if they exist (they shouldn't)
|
||||||
|
|
Loading…
Add table
Reference in a new issue