- Change the new mail query to search for the MAIL:read attribute.

- The deskbar status query is looking for MAIL:read values equal to B_UNREAD now. This has the effect that in manual mark as read mode also unseen messages are counted as read messages. In this way the deskbar shows the full mailbox icon only for really new messages.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-02-21 10:01:39 +00:00
parent d773c5bf4c
commit f191a57149
+3 -3
View File
@@ -154,8 +154,8 @@ void DeskbarView::_RefreshMailQuery()
BQuery *newMailQuery = new BQuery;
newMailQuery->SetTarget(this);
newMailQuery->SetVolume(&volume);
newMailQuery->PushAttr(B_MAIL_ATTR_STATUS);
newMailQuery->PushString("New");
newMailQuery->PushAttr(B_MAIL_ATTR_READ);
newMailQuery->PushInt32(B_UNREAD);
newMailQuery->PushOp(B_EQ);
newMailQuery->PushAttr("BEOS:TYPE");
newMailQuery->PushString("text/x-email");
@@ -445,7 +445,7 @@ DeskbarView::_CreateNewMailQuery(BEntry& query)
if (file.InitCheck() != B_OK)
return;
BString string("((" B_MAIL_ATTR_STATUS "==\"[nN][eE][wW]\")&&((BEOS:TYPE=="
BString string("((" B_MAIL_ATTR_READ "<2)&&((BEOS:TYPE=="
"\"text/x-email\")||(BEOS:TYPE==\"text/x-partial-email\")))");
file.WriteAttrString("_trk/qrystr", &string);
file.WriteAttrString("_trk/qryinitstr", &string);