Closed Bug 270069 Opened 20 years ago Closed 20 years ago

message counts in statusbar aren't consistently updated for virtual folders

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Thunderbird1.0

People

(Reporter: bugzilla, Assigned: Bienvenu)

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

marcia mentioned having problems with how the message count is displayed in the
status bar for virtual folders. I also see this problem, and I think it might be
limited to virtual folders which search a single folder (but not across multiple
folders).

tested with 2004111505-0.9 on linux fc2; marcia saw this on the mac.

I can demonstrate this with some folders I've got on an IMAP account. to keep it
simple, I just keep the View set to All and have nothing set in the Quicksearch
field.

a. "bugscrubinfo" folder statusbar: Unread: 0, Total: 49 noted on the right
side. nothing noted on the left side. this is just a regular, user-defined IMAP
folder.

b. "bugscrubinfo-Later", a virtual folder based on searching for messages in my
"bugscrubinfo" folder: left side says "5 matches found" and right side has
Unread: 0, Total 49. the 5 matches is correct, but the 49 messages refers to the
count of the "bugscrubinfo" folder, not this one.

c. "multipack", a virtual folder based on searching *two* of my regular IMAP
folders: like (a), nothing noted on left side; right side of statusbar says
Unread: 0, Total: 11. this is correct, as there are 11 messages resulting from
the multi-folder search.

so, of (a), (b) and (c), folder (b) displays incorrectly, or at least misleadingly.
another interesting observation, based on the folders I've got in comment 0:

1. click on (b) --note that it says "5 matches found" on the right side of the
statusbar.

2. click on any other folder *which you have already viewed during the same
tbird session*

results: while the right side of the statusbar (Unread, Total) updates
correctly, the left side still displays "5 matches found"

workaround: clicking on a folder you haven't viewed yet during the same session
somehow clears the left side statusbar content.
This makes virtual folders unfriendly to use. We should try to get this fixed
for 1.0
Flags: blocking-aviary1.0?
Setting TM to 1.0 for consideration.
Target Milestone: --- → Thunderbird1.0
David can you think of an easy way to fix this? This is only an issue for single
folder virtual folders. It happens because we are really just doing a quick
search on your real underlying folder so you see those message counts. Maybe we
could fake the unread/read total notifications in onSearchComplete in searchBar.js. 
definitely - I'll look at it...
Assignee: mscott → bienvenu
Status: NEW → ASSIGNED
Flags: blocking-aviary1.0? → blocking-aviary1.0+
Attached patch proposed fixSplinter Review
use gSelectedFolder instead of msgWindow.openFolder.
Attachment #166595 - Flags: superreview?(mscott)
Attachment #166595 - Flags: superreview?(mscott) → superreview+
fixed trunk and branch (need to fix in seamonkey as well)
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
David, thanks for fixing this! vrfy'd fixed with 2004120106-0.9 on linux fc2.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: