Commit b4a1658c b4a1658c5ac6beb96ee500279b6b66ae0443ddad by Sergey Poznyakoff

Fixed flags_to_string(): MU_ATTRIBUTE_SEEN and MU_ATTRIBUTE_READ were swapped:

the former produced 'R', and the latter 'O'.
1 parent 9c99e86c
...@@ -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
......