Closed Bug 265330 Opened 20 years ago Closed 20 years ago

Issues with Unread messages and Virtual Folders

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird0.9

People

(Reporter: mscott, Assigned: Bienvenu)

Details

(Keywords: fixed-aviary1.0)

Attachments

(2 files)

First reported to me by Asa.

If I am inside a virtual folder. I cannot mark a message as read by clicking on
the  read/unread icon. It looks like it gets marked as read and then marked back
as unread again. I even see the folder count in the folder pane for the VF
changing and then changing back. 

Another thing that may be related. The new mail indicator (the red blat in the
folder pane next to the folder) goes off for your virtual folder which is fine.
But when I read the new message, I'm not seeing the new mail indicator go away
for that virtual folder. It does go away for the real account. This is for imap.
I wonder if the VF isn't listening for a particular notification that it should be.
Target Milestone: --- → Thunderbird0.9
is this a single folder virtual folder, or a virtual folder that searches across
multiple folders? I tried this and it worked fine for me...
for me at least.

IMAP spanning multiple folders
asa may be seeing another variant:

"I mean that if I have a virtual folder that has unread messages, the folder
name is bolded in the folder/account pane, similar to a normal folder with
unread messages. When I read those messages, from either the virtual folder or
the real folder, the label for the virtual folder stays bolded as if it's still
got unread messages until I visit it and then some other folder.

steps:
1. have a virtual folder that's got unread messages.
2. read messages.
results:
see that the virtual folder is still bold.
expected: virtual folder label gets unbolded when it has no unread messages. "
also have another variance.

steps:
1. Inbox containing unread messages
2. search for unread messages.
3. save into a virtual folder.

result:
virtual folder is not in bold and displaying then number of unread messages.

expected:
virtual folder to be in bold and displaying the number.
this keeps track of the number of new messages in a virtual folder. I also had
to change GetNumNewMessages to ignore virtual folders when doing a deep count
(which the system tray does)
Attachment #163022 - Flags: superreview?(mscott)
Attachment #163023 - Flags: superreview?(mscott)
Comment on attachment 163022 [details] [diff] [review]
fix clearing the new flag when last new message is read

+      m_virtualFolder->SetNumNewMessages(numNewMessages - 1);

do we have to worry about numNewMessages being 0 here and setting a new message
count of -1?
Attachment #163022 - Flags: superreview?(mscott) → superreview+
Comment on attachment 163023 [details] [diff] [review]
fix counts when opening a single folder virtual folder

isn't this:

 if (gCurrentVirtualFolderUri && gCurrentVirtualFolderUri != ""

the same thing as just checking for gCurrentVirtualFolderUri?
Attachment #163023 - Flags: superreview?(mscott) → superreview+
Status: NEW → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: