Closed Bug 368303 Opened 18 years ago Closed 17 years ago

Thunderbird 2.0 forgets Junk Settings in Account Manager

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla2, Assigned: mscott)

References

Details

(Keywords: fixed1.8.1.2, regression)

Attachments

(1 file, 2 obsolete files)

User-Agent:       Opera/9.12 (Windows NT 5.1; U; de)
Build Identifier: Version 2 beta 2 (20070125)

Beginning with Thunderbird 2.0 Beta 2 (I think Beta 1 was OK), the Profile Manager forgets Junk Settings. Because of that, Junk filter ist not working :-(

Reproducible: Always

Steps to Reproduce:
1. There must be 2 Mail Profiles or more
2. Open Mail Profile Manager
3. Goto first Mail Account, and tick all checkboxes in Junk Settings
4. Goto second Mail Account, and UNtick all checkboxes in Junk Settings
5. Goto first Mail Account
Actual Results:  
All checkboxes in first Mail account are UNticked

Expected Results:  
All checkboxes in first Mail Account should still be ticked

Happens with english and german version of beta 2. Went to last trunk build, same problem. Happens on current user profile, and new created ones.
Just tested back with Beta 1 -> same problem! (Don't know why I haven't realized that before...)

Latest Build where Junk Settings work as expected -> alpha 1 (20060912)
Flags: blocking-thunderbird2?
one more adition:
In Alpha 1, the settings in Mail Acount Manager are stored correctly, but e-mails are not filtered anyway. Maybe because there are no Junk settings for the Local Folder. (The later is present in beta builds, but it isn't stored, so it makes no difference). Seems I have to figure out, and set the corret settings in prefs.js by myself...
Reproduced with TB 2b1-0125, Win2K.

The simple workaround is to make changes for one account, close the Account Settings window, re-open, then make changes for the other account.

(There was, and probably still is, a similar bug when making changes to fonts and switching between language groups, but I'm not going to look around for it right now.)
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Windows XP → Windows 2000
Summary: Thunderbird 2.0 forgets Junk Settings in Profile Manager → Thunderbird 2.0 forgets Junk Settings in Account Manager
Version: unspecified → 2.0
In the error console:

Error: GetMsgFolderFromUri(parent.pendingServerId, false) has no properties
Source File: chrome://messenger/content/am-junk.js
Line: 16
OS: Windows 2000 → All
Hardware: PC → All
this seems like a good thing to try to fix before beta 2.
Flags: blocking-thunderbird2? → blocking-thunderbird2+
I can't reproduce this on the trunk. But on the branch I generate the JS error that Magnus reported:

Error: GetMsgFolderFromUri(parent.pendingServerId, false) has no properties
Source File: chrome://messenger/content/am-junk.js
Line: 16
Status: NEW → ASSIGNED
Actually I can reproduce this on the trunk.

When switching from the Junk panel of Account A to the junk panel of Account B, parent.pendingServerId doesn't appear to have a value when onInit gets called in am-junk.js. If you go from Account A's junk panel to any other panel in Account B like Disk Space and the move to Account B's junk panel, parent.pendingServerId has a value.

Attached patch the fix (obsolete) — Splinter Review
Not sure why I was using pendingServerId in am-junk.js, but we should be using currentServerId. Instead of duplicating JS for getting the current server id from the tree, I consolidated several callers into a single method in AccountManager.js leaving the implementation of that method unchanged.

However, in the future I wonder if GetCurrentServerIdFromTree couldn't just return the Account Manager's global currentServerId variable. I was worried about the risk of making this change for the branch though so I left the implementation alone.
Attachment #253531 - Flags: superreview?(neil)
Comment on attachment 253531 [details] [diff] [review]
the fix

Looks reasonable, but note that pendingServerId is set if we're loading a page (which is not true when switching between the same type of page from different accounts), while currentServerId is set, but only after onInit() is called, possibly in case it fails, so my preference for the most branch-safe fix would therefore be for restorePage to pass the pageId and serverId to onInit.
Attachment #253531 - Flags: superreview?(neil) → superreview+
This may be not too useful, and it's coming rather late in the process, but I'm getting this error every single time I hit OK in the Account Settings, even if I haven't changed any setting at all or switched to a different page:

Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsISpamSettings.initialize]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://messenger/content/AccountManager.js :: saveAccount :: line 648"  data: no]
Source File: chrome://messenger/content/AccountManager.js
Line: 648

Also, the dialog doesn't close, I have to hit Cancel.  
This is with 2b2-0131, Win2K.
Comment 10 has already been reported as bug 368617; I still don't know if it's related or not to this bug.
I'm not sure which solution I like more yet.
Attached patch cleaned up patchSplinter Review
the previous page had some changes from another bug.
Attachment #253531 - Attachment is obsolete: true
Attachment #253664 - Attachment is obsolete: true
Attachment #254238 - Flags: superreview?(neil)
I mean the previous patch of course not the previous page.
Attachment #254238 - Flags: superreview?(neil) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.1.2
Resolution: --- → FIXED
I backed this out of the trunk as it turns out the tree is closed for a Firefox issue this morning. Re-opening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
this is fixed on the trunk now too.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Depends on: 444994
I have the same problem that was originally described. I am no Technie and don't get most of the rest here - but I can tell you that the problems log in TB tells me the following: "Uncaugt exception: unable to find folder to select!"
Hi there. Sadly, I can confirm, that this bug is back :(
I am having extreme problems with Junk-Settings in the last weeks, when setting up Thunderbird 10 ESR on customers machines. Seems like the issue doesn't occur, when using separate inboxes for each address, but the moment I try to switch to global Inbox, it really messes around.

Reopen this bug? Make a new report on this issues?
No longer depends on: 444994
Depends on: 444994
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: