NewMailNotification is not seeing new mails sometimes.
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr78 wontfix, thunderbird_esr91+ fixed, thunderbird92 fixed)
People
(Reporter: TbSync, Assigned: TbSync)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr91+
|
Details | Review |
While working on bug 1716051, I found this:
let folders = changedFolder.descendants;
if (folders.length == 0) {
folders = [changedFolder];
}
This causes changedFolder
itself to be ignored, if it has descendants. The effect is, that if I get a OnItemIntPropertyChanged
notification for the BiffState
or NewMailReceived
property for my actual INBOX folder (which happen to have subfolders) -> I get no new mail notification.
I do not know what defines which folder is triggering this (sometimes the root folder, sometimes the INBOX folder), but in the second case, I get no notifications.
For the WebExt API I use
let folders = changedFolder.descendants;
folders.unshift(changedFolder);
Should we fix that here as well?
Assignee | ||
Comment 1•4 years ago
|
||
Comment 2•4 years ago
|
||
(If this doesn't affect v78 please change fields)
Assignee | ||
Comment 3•4 years ago
|
||
The file "MailNotificationManager.jsm" does not exist in TB78, so a fix for TB91/92 cannot be backported, so lets make this just about TB91/Tb92.
Assignee | ||
Comment 4•4 years ago
|
||
I guess the triage owner has to confirm this, before I can send the patch for review?
Comment 5•4 years ago
|
||
The patch looks good to me. Problem only happens when Inbox has sub-folders, right?
Assignee | ||
Comment 6•4 years ago
|
||
Yes, and never on first received mail, but on second or third. I have not understood, why sometimes the root folder is triggering the event, and sometimes the inbox folder. If it is the inbox folder, no notification.
Comment 7•4 years ago
|
||
The backend code is https://searchfox.org/comm-central/rev/564bad8f71edcd07e7f2493d4317e752f78de9a9/mailnews/base/src/nsMsgDBFolder.cpp#4135-4136
When the biff state of a folder changes, the event is emitted from the root folder. For the second/third new messages, biff state doesn't change, so the event is from the real folder itself. I don't know why it's designed like this though.
Assignee | ||
Comment 8•4 years ago
|
||
Perfect, that completely explains the behavior I see and everybody should be able to reproduce this bug.
Comment 9•3 years ago
|
||
(In reply to John Bieling (:TbSync) from comment #4)
I guess the triage owner has to confirm this, before I can send the patch for review?
You can always submit a patch independent of the bug status.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5529ef349700
Fix new mail notification. r=mkmelin
Assignee | ||
Comment 12•3 years ago
|
||
Comment on attachment 9231655 [details]
Bug 1720947 - Fix new mail notification. r=mkmelin
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Missing email notifications in some edge cases.
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
None.
Comment 13•3 years ago
|
||
Comment on attachment 9231655 [details]
Bug 1720947 - Fix new mail notification. r=mkmelin
[Triage Comment]
Approved for beta
Comment 14•3 years ago
|
||
bugherder uplift |
Thunderbird 92.0b5:
https://hg.mozilla.org/releases/comm-beta/rev/559f17846501
Assignee | ||
Comment 15•3 years ago
|
||
Comment on attachment 9231655 [details]
Bug 1720947 - Fix new mail notification. r=mkmelin
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Missing email notifications in some edge cases.
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
None.
Comment 16•3 years ago
|
||
Comment on attachment 9231655 [details]
Bug 1720947 - Fix new mail notification. r=mkmelin
[Triage Comment]
Approved for esr91
Comment 17•3 years ago
|
||
bugherder uplift |
Thunderbird 91.2.0:
https://hg.mozilla.org/releases/comm-esr91/rev/f5cb78b9a907
Description
•