[haiku-bugs] [Haiku] #14739: Mail won't be "Left as 'New'"

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 03 Dec 2018 16:58:28 -0000

#14739: Mail won't be "Left as 'New'"
-------------------------------+------------------------------
 Reporter:  humdinger          |        Owner:  czeidler
     Type:  bug                |       Status:  new
 Priority:  normal             |    Milestone:  Unscheduled
Component:  Applications/Mail  |      Version:  R1/Development
 Keywords:                     |   Blocked By:
 Blocking:                     |  Has a Patch:  0
 Platform:  All                |
-------------------------------+------------------------------
 This is hrev52597, 32bit.

 I'm fetching my mail via IMAP. When I open a new mail and choose "Close >
 Leave as 'New'", Mail closes, but the status as set as "Read".

 I made sure the unopened email has the MAIL:status "New". I built Mail
 with debugging and found that when the mail file is read, the flag is set
 as "B_READ" for some reason, see [https://git.haiku-
 os.org/haiku/tree/src/apps/mail/MailWindow.cpp#n260 MainWindow.cpp:260ff].

 Consequently, the {{{ if (flag == B_UNREAD) }}} isn't executed and the
 BMessage kMsgQuitAndKeepAllStatus won't be sent.

 Now, why is the flag set to B_READ when the status attribute says "New"?

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14739>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts:

  • » [haiku-bugs] [Haiku] #14739: Mail won't be "Left as 'New'" - Haiku