Open Bug 1939698 Opened 1 month ago Updated 1 month ago

Repairing an IMAP folder doubles up message counts of virtual/saved search folder in the folder tree

Categories

(MailNews Core :: Search, defect)

Thunderbird 91
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: betterbird.project+18, Unassigned)

References

(Regression)

Details

(Keywords: regression)

This is another fallout from bug 276716.

STR:
Have an IMAP inbox with some unread messages.
Create a virtual folder with condition "status isn't read". Observe the count in the folder tree.
Repair the IMAP inbox.

Result: the counts of the virtual folder are now doubled-up. They become good again when visiting the folder.

This is caused by the listener in
https://searchfox.org/comm-central/rev/d898076e89dd7a0481fa9b0ad8d9348c17496b8e/mailnews/base/src/nsMsgAccountManager.cpp#2649
VirtualFolderChangeListener::OnHdrAdded() and fact that IMAP folder repair re-downloads all messages and apparently they are notified as new.

For some more analysis if this area, see bug 1923520.

Keywords: regression
Regressed by: 276716
See Also: → 1923520
You need to log in before you can comment on or make changes to this bug.