Fix the way mail accounts for the status of messages.
* mail/mail.h (MAIL_ATTRIBUTE_PRESERVED) (MAIL_ATTRIBUTE_TOUCHED): New define. * mail/from.c (mail_from0): Mark with 'R' only those messages that have been read in this mail session. * mail/hold.c (hold0): Set MAIL_ATTRIBUTE_PRESERVED * mail/mbox.c (mbox0): Don't mark message as read. * mail/quit.c (mail_mbox_commit): Force keepsave on not system mailboxes. * mail/touch.c: Use MAIL_ATTRIBUTE_TOUCHED * mail/undelete.c: Clear MAIL_ATTRIBUTE_PRESERVED and MAIL_ATTRIBUTE_MBOXED bits. * mail/testsuite/mail/write.exp: Account for the above changes.
Showing
8 changed files
with
28 additions
and
17 deletions
-
Please register or sign in to post a comment