Closed Bug 356601 Opened 18 years ago Closed 18 years ago

unread counts for cross-folder saved searches gets off by one or more

Categories

(MailNews Core :: Backend, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

I have a cross-folder saved search of unread messages in my incoming folders that occasionally gets its total and unread counts off by 1 or 2 (too high) and that persists when you click out of the folder, until you return to the saved search. It turns out this happens if I read/delete messages that are put in the view from the cached headers, before the search completes. We were counting the total and unread counts from the search hits as they came in, but not adjusting those counts based on changes happening during the search. I could try to adjust the counts as messages are read/deleted while the search is going on, but I think the easiest thing is to just set the totals based on the messages in the view, when the search is done.
Attached patch proposed fixSplinter Review
Attachment #242218 - Flags: superreview?(mscott)
Attachment #242218 - Flags: superreview?(mscott) → superreview+
fixed on trunk and branch
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: