Fixed flags_to_string(): MU_ATTRIBUTE_SEEN and MU_ATTRIBUTE_READ were swapped:
the former produced 'R', and the latter 'O'.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -343,7 +343,7 @@ attribute_is_recent (attribute_t attr) | ... | @@ -343,7 +343,7 @@ attribute_is_recent (attribute_t attr) |
343 | /* something is recent when it is not read and not seen. */ | 343 | /* something is recent when it is not read and not seen. */ |
344 | return (attr->flags == 0 | 344 | return (attr->flags == 0 |
345 | || ! ((attr->flags & MU_ATTRIBUTE_SEEN) | 345 | || ! ((attr->flags & MU_ATTRIBUTE_SEEN) |
346 | && (attr->flags & MU_ATTRIBUTE_READ))); | 346 | || (attr->flags & MU_ATTRIBUTE_READ))); |
347 | } | 347 | } |
348 | 348 | ||
349 | int | 349 | int |
... | @@ -521,13 +521,13 @@ flags_to_string (int flags, char *buffer, size_t len, size_t *pn) | ... | @@ -521,13 +521,13 @@ flags_to_string (int flags, char *buffer, size_t len, size_t *pn) |
521 | *status = *a = '\0'; | 521 | *status = *a = '\0'; |
522 | 522 | ||
523 | if (flags & MU_ATTRIBUTE_SEEN) | 523 | if (flags & MU_ATTRIBUTE_SEEN) |
524 | strcat (a, "R"); | 524 | strcat (a, "O"); |
525 | if (flags & MU_ATTRIBUTE_ANSWERED) | 525 | if (flags & MU_ATTRIBUTE_ANSWERED) |
526 | strcat (a, "A"); | 526 | strcat (a, "A"); |
527 | if (flags & MU_ATTRIBUTE_FLAGGED) | 527 | if (flags & MU_ATTRIBUTE_FLAGGED) |
528 | strcat (a, "F"); | 528 | strcat (a, "F"); |
529 | if (flags & MU_ATTRIBUTE_READ) | 529 | if (flags & MU_ATTRIBUTE_READ) |
530 | strcat (a, "O"); | 530 | strcat (a, "R"); |
531 | if (flags & MU_ATTRIBUTE_DELETED) | 531 | if (flags & MU_ATTRIBUTE_DELETED) |
532 | strcat (a, "d"); | 532 | strcat (a, "d"); |
533 | 533 | ... | ... |
-
Please register or sign in to post a comment