Changed order of checking message attribute bits to be compatible with existing implementations.
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -84,10 +84,12 @@ mail_from (int argc, char **argv) | ... | @@ -84,10 +84,12 @@ mail_from (int argc, char **argv) |
84 | cflag = 'M'; | 84 | cflag = 'M'; |
85 | else if (attribute_is_userflag(attr, MAIL_ATTRIBUTE_SAVED)) | 85 | else if (attribute_is_userflag(attr, MAIL_ATTRIBUTE_SAVED)) |
86 | cflag = '*'; | 86 | cflag = '*'; |
87 | else if (flags == MU_ATTRIBUTE_RECENT) /*FIXME*/ | ||
88 | cflag = 'N'; | ||
89 | else if (flags & MU_ATTRIBUTE_READ) | 87 | else if (flags & MU_ATTRIBUTE_READ) |
88 | cflag = 'O'; | ||
89 | else if (flags & MU_ATTRIBUTE_SEEN) | ||
90 | cflag = 'R'; | 90 | cflag = 'R'; |
91 | else if (attribute_is_recent(attr)) | ||
92 | cflag = 'N'; | ||
91 | else | 93 | else |
92 | cflag = 'U'; | 94 | cflag = 'U'; |
93 | 95 | ... | ... |
-
Please register or sign in to post a comment