Open
Bug 727460
Opened 13 years ago
Updated 2 years ago
getNumNewMessages() doesn't return 0 after OnItemBoolPropertyChanged NewMessages becomes false
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: foudil.newbie+bmo, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0
Build ID: 20120131115129
Steps to reproduce:
Components.utils.import("resource:///modules/mailServices.js");
var MyExt = {
init: function() {
let that = this;
MailServices.mailSession.AddFolderListener(that.mailSessionListener,
that.mailSessionListener.notificationFlags);
},
mailSessionListener: {
notificationFlags:
Ci.nsIFolderListener.intPropertyChanged |
Ci.nsIFolderListener.boolPropertyChanged,
OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { // TotalUnreadMessages, BiffState (per server)
LOG("OnItemIntPropertyChanged "+property+" for folder "+item.prettyName+" was "+oldValue+" became "+newValue+" NEW MESSAGES="+item.getNumNewMessages(true));
},
OnItemBoolPropertyChanged: function(item, property, oldValue, newValue) { // NewMessages (per folder)
LOG("OnItemBoolPropertyChanged "+property+" for folder "+item.prettyName+" was "+oldValue+" became "+newValue+" NEW MESSAGES="+item.getNumNewMessages(true));
},
}
}
1. Send yourself a message to a Gmail account
2. select the Inbox folder (remains marked as including new messages - yellow flash ball on the icon). This produces:
"OnItemBoolPropertyChanged NewMessages for folder Inbox was false became true NEW MESSAGES=1" (OK)
3. leave the Inbox folder by selecting another folder. This produces:
"OnItemBoolPropertyChanged NewMessages for folder Inbox was true became false NEW MESSAGES=1" (NOT OK)
This is on a Linux Fedora 16.
Actual results:
item.getNumNewMessages(true) returns 1 (or more) after "NewMessages" has become false.
Expected results:
item.getNumNewMessages(true) should return 0.
On a Zimbra Imap server (6.0), getNumNewMessages() gives unpredictable results:
OnItemBoolPropertyChanged NewMessages for folder Inbox was false became true NEW MESSAGES=0 (although there was only 1 new message displayed in the UI)
OnItemBoolPropertyChanged NewMessages for folder Inbox was false became true NEW MESSAGES=14
(although there was only 1 new message displayed in the UI)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•