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

RESOLVED FIXED

Status

MailNews Core
Backend
RESOLVED FIXED
11 years ago
9 years ago

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Tracking

({fixed1.8.1})

Trunk
x86
Windows XP
fixed1.8.1

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

11 years ago
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.
(Assignee)

Comment 1

11 years ago
Created attachment 242218 [details] [diff] [review]
proposed fix
Attachment #242218 - Flags: superreview?(mscott)

Updated

11 years ago
Attachment #242218 - Flags: superreview?(mscott) → superreview+
(Assignee)

Comment 2

11 years ago
fixed on trunk and branch
Status: NEW → RESOLVED
Last Resolved: 11 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.