Closed Bug 386291 Opened 17 years ago Closed 17 years ago

new mail notification displays doubled subjects on IMAP

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mkmelin, Assigned: Bienvenu)

Details

(Keywords: regression)

Attachments

(2 files)

For IMAP I have started getting wrong info in the new mail notification. If I get one new message, it displays the subject and from like I got two messages from the same thread. This also causes the notification to look cut off. See the screenshot.

This regression is not very fresh, I think I've seen it for about a month. Trunk only. POP accounts don't seem to be affected.
I've been seeing this for quite a while too on the trunk. Probably close to two months now. I haven't gotten around to figuring out when it regressed. Maybe we can get a couple folks to help track down a regression window.
I've debugged this a bit - I suspect we're getting two notifications when the imap fetch of the headers is done, or something like that - we're getting into newmailalert.xul's parseFolder method twice, each time, adding the subject for the new mail to the alert.
Assignee: nobody → bienvenu
I suspect the issue is that nsIMsgFolder::FetchMsgPreviewText returns a boolean, but js calling code treats it as an out parameter. I know the async return value isn't getting set properly, causing us to add the msg to the popup twice.
Status: NEW → ASSIGNED
Attached patch proposed fixSplinter Review
Attachment #271252 - Flags: superreview?(mscott)
Comment on attachment 271252 [details] [diff] [review]
proposed fix

ah nsIMsgFolder API cleanup fall out. Thanks David!
Attachment #271252 - Flags: superreview?(mscott) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Verified fixed on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a7pre) Gecko/2007070803 Thunderbird/3.0a1pre ID:2007070803
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: