Closed
Bug 215694
Opened 22 years ago
Closed 21 years ago
View -> Messages -> Unread setting is broken on restart
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.6alpha
People
(Reporter: will, Assigned: Bienvenu)
References
Details
(Keywords: regression)
Attachments
(1 file)
728 bytes,
patch
|
Details | Diff | Splinter Review |
If View -> Messages -> Unread is set and then Thunderbird is closed and opened
again. All newsgroups will display all messages - including read ones. When you
then go to View -> Messages, Unread is still ticked.
This setting is apparantly not 'sticking' after a restart
Comment 1•22 years ago
|
||
did this used to work in builds?
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird0.2
Comment 2•22 years ago
|
||
This used to work in all builds up to the 0.1 release. The post-0.1 builds seem
to break some things that worked before.
Comment 3•22 years ago
|
||
Hmm this is working for me with the latest thunderbird windows release (8-13).
I can set to show unread. Quit the app, restart and after the folder loads it
changes to show the unread view.
Comment 4•22 years ago
|
||
Strange, it doesn't work here on W2K.
After setting the filter to "Unread" and restarting, "View / Messages / Unread"
is checked but the folder shows all messages. So setting back to "All" and then
"Unread" shows only unread messages. This also happens using other filters like
"Important". Using 0.1 with the same profile shows only unread emails right afer
the restart, like it should.
Mozilla Mail (20030818) does the same btw. Unfortunately, Mozilla nightlies
aren't archived for a long time so we cannot trace back what caused this.
Comment 5•22 years ago
|
||
The following error in the JS console comes up when a folder is loaded after the
restart (a filter different from "All" is selected):
Error: gDBView has no properties
Source File: chrome://messenger/content/searchBar.js
Line: 116
Comment 6•21 years ago
|
||
moving into .3
still have not been able to reproduce.
Target Milestone: Thunderbird0.2 → Thunderbird0.3
Comment 7•21 years ago
|
||
(Maybe we should move this to MailNews so it gets more attention.)
I think I tracked down which checkin caused this bug. It happened between 0729
and 0730, so I tried backing out the fix for bug 213688 in
mailnews/local/src/nsLocalMailFolder.cpp and it resulted in a build without the
bug described here. This matches the observation that it occured after Tb 0.1
(0727). Does this help?
Comment 8•21 years ago
|
||
Nice deduction.
btw, are you suggesting that this bug only effects Pop / local mail accounts and
not IMAP? That would explain why I cannot reproduce it.
Comment 9•21 years ago
|
||
Yes, that sounds plausible, I am experiencing this bug with local folders only
since I don't use IMAP. The file I mentioned in my previous comment seems to
affect local folder only, too. Looks like a proof :)
Comment 10•21 years ago
|
||
cc'ing bienvenu since he is the owner of 213688
Assignee | ||
Comment 11•21 years ago
|
||
taking, I'll try to fix this today.
Assignee: scott → bienvenu
Status: ASSIGNED → NEW
Assignee | ||
Comment 12•21 years ago
|
||
OK, I can verify that Malte is right, and backing out that change fixes it. I
tried debugging it first and didn't get very far. I think the problem is
definitely related to the searchbar error, but I'm not sure why that change
causes the view to be null.
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•21 years ago
|
||
OK, I see the problem - because my change resulted in us opening the db's less
often (in particular, the INBOX at startup), we end up going through the code in
nsLocalMailFolder::GetDatabase that opens the db, but more importantly, sends a
folder loaded notification. It's this folder loaded notification that triggers
the attempt to create the search bar, but it's too soon - we haven't created the
view yet. The fix might be just to remove the folderloaded notification - it's
unclear to me why it's there in the first place.
Keywords: regression
Product: Thunderbird → MailNews
Target Milestone: Thunderbird0.3 → mozilla1.6alpha
Version: unspecified → Trunk
Assignee | ||
Comment 14•21 years ago
|
||
remove the folder loaded notification - there's no guarantee that the folder
has been loaded. we send the correct folder loaded notification in
UpdateFolder.
Assignee | ||
Comment 15•21 years ago
|
||
fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 16•21 years ago
|
||
FYI: this is now fixed in thunderbird 0.3 as well
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•