Closed Bug 1947554 Opened 4 days ago Closed 4 days ago

No new mail notification on new IMAP messages anymore

Categories

(MailNews Core :: Backend, defect, P1)

Thunderbird 136
Desktop
Windows

Tracking

(thunderbird_esr128 unaffected, thunderbird136+ fixed)

RESOLVED FIXED
137 Branch
Tracking Status
thunderbird_esr128 --- unaffected
thunderbird136 + fixed

People

(Reporter: TbSync, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

New mail notifications are no longer shown. I tracked it down to
https://phabricator.services.mozilla.com/D234217

OK build:
m-c: 0da4e2f4d975fa56cabcc3efecf60f3faca30b29
c-c: 36522267f5c2c8da1f4335022d4a438a64213977

BAD build
m-c: 0da4e2f4d975fa56cabcc3efecf60f3faca30b29
c-c: 9ba85c3b79059081a384ca3a06841582d05323bc

Severity: -- → S1
OS: Unspecified → Windows
Priority: -- → P1
Hardware: Unspecified → Desktop
Version: unspecified → Thunderbird 136
Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(benc)

IMAP I assume? Is it the same with pop3?

Flags: needinfo?(mkmelin+mozilla)

IMAP: no notification shown
POP: notification shown

I do actually see this on linux as well.
But it works for some cases (such as after startup), just not the when received through idle.

Assignee: nobody → mkmelin+mozilla
Flags: needinfo?(benc)
Summary: No new mail notification on Windows anymore → No new mail notification on anymore
Summary: No new mail notification on anymore → No new mail notification on new IMAP messages anymore

Yes, I think the onFolderIntPropertyChanged events for BiffState and NewMailReceived are not fired.

I can replicate this on Linux too - when new messages come in via IMAP, there's no notification.

However, if you set up a filter to unconditionally move all incoming messages to another folder (on the same IMAP account), the notifications do appear when new messages are delivered.

I found it. CallFilterPlugins is returning early before setting aFiltersRun to false, so this call to SetBiffState is not made.

Checking on the folder lock didn't happen in this code path before. I guess it's okay, not really sure. But moving *aFiltersRun = false up fixes the bug.

Thanks Geoff! I can confirm that's the issue. That's what we get for using uninitialized out variables it seems :-/

Status: NEW → ASSIGNED

Make sure filtersRun out is false until we way otherwise.

Target Milestone: --- → 137 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/089f77113dc9
Fix No new mail notification on new IMAP messages anymore. r=john.bieling

Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED

Comment on attachment 9465644 [details]
Bug 1947554 - Fix No new mail notification on new IMAP messages anymore. r=#thunderbird-reviewers,darktrojan

[User impact if declined]

  • No new mail notification from background checks

[Is this code covered by automated tests?]

  • No

[Has the fix been verified in Daily? (or Beta for an ESR uplift?)]

  • Yes

[Needs manual test from QA?]

  • If wanted, send yourself an email to an imap account, and see that there is a notification about it.

[List of other uplifts needed]

[Risk to taking this patch]

  • Options: Low
  • Provide moving a variable initialization.

[String changes made/needed]

  • none
Attachment #9465644 - Flags: approval-comm-beta?

Comment on attachment 9465644 [details]
Bug 1947554 - Fix No new mail notification on new IMAP messages anymore. r=#thunderbird-reviewers,darktrojan

[Triage Comment]
Approved for beta

Attachment #9465644 - Flags: approval-comm-beta? → approval-comm-beta+
Duplicate of this bug: 1948181
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: