Closed Bug 450712 Opened 17 years ago Closed 17 years ago

"INBOX" is always displayed as selected folder name of "When I delete a message/Move it to this folder"

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b1

People

(Reporter: World, Assigned: mkmelin)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Checked with Tb Trunk 2008/8/14 build on MS Win-XP SP3. > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080814031842 Shredder/3.0b1pre "INBOX" is always displayed as selected folder name of "When I delete a message / Move it to this folder". (1) Choose "When I delete a message/Move it to this folder", and select "Trash" folder at selection list. => "Trash" is set in mail.server.serverX.trash_folder_name as expected (2) Close "Server Settings" panel (3) Open "Server Settings" panel => INBOX is always displayed as chosen folder mail.server.serverX.trash_folder_name is not modified until other folder is intentionally selected via selection list. So UI only issue.
See it on linux too. I think it's basically the same as bug 437056 (~ same code), at least if trash is a subfolder. I see it without it being a subfolder also though.
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
I think good fiend of bug 437056 is Bug 427311, instead of this bug.
Depends on: 451728
No longer depends on: 451728
Flags: blocking-thunderbird3+
Assignee: nobody → mkmelin+mozilla
Attached patch proposed fix (obsolete) — Splinter Review
This fixes this regression, but not bug 427311 (which never worked). It seems there were several issues here - didn't update the widget after selecting => subfolder couldn't be selected - in the selectFolder method the isAncestorOf stuff looks bogus to me, and that was causing the inbox to always get reselected after reopening preferences
Attachment #340392 - Flags: superreview?(bienvenu)
Attachment #340392 - Flags: review?(bienvenu)
Joey: can you take a look at the fix also?
Attachment #340392 - Flags: superreview?(neil)
Attachment #340392 - Flags: superreview?(bienvenu)
Attachment #340392 - Flags: review?(bienvenu)
Attachment #340392 - Flags: review+
Comment on attachment 340392 [details] [diff] [review] proposed fix this looks ok to me, Thx, Magnus. I'll let Neil look at it, though. one nit - I don't think you need the temp var here: + // Set the value to be persisted. + var hiddenLabel = document.getElementById("imap.trashFolderName"); + hiddenLabel.setAttribute("value", folder.name);
Comment on attachment 340392 [details] [diff] [review] proposed fix > function folderPickerChange(aEvent) > { >+ var folder = aEvent.target._folder; >+ >+ // Set the value to be persisted. >+ var hiddenLabel = document.getElementById("imap.trashFolderName"); >+ hiddenLabel.setAttribute("value", folder.name); >+ >+ // Update the widget to show/do correct things even for subfolders. >+ var trashFolderPicker = document.getElementById("msgTrashFolderPicker"); >+ trashFolderPicker._folder = folder; >+ trashFolderPicker.setAttribute("label", folder.prettyName); I don't understand this, the event target should already be the folder picker.
Actually no, msgTrashFolderPicker is the menulist, the event target is a node in the menupopup (msgTrashFolderPopup). Without this change, you can't set the trash folder to a top level folder that has subfolders - since you'd select "choose this folder" in a sub popup.
Comment on attachment 340392 [details] [diff] [review] proposed fix >+ trashFolderPicker._folder = folder; OK, so what does this do?
Well, since we don't use the value from the picker anywhere later, nothing.
Attached patch proposed fix, v2Splinter Review
Carrying fwd r=bienvenu
Attachment #340392 - Attachment is obsolete: true
Attachment #340622 - Flags: superreview?(neil)
Attachment #340622 - Flags: review+
Attachment #340392 - Flags: superreview?(neil)
Attachment #340622 - Flags: superreview?(neil) → superreview+
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird 3.0b2
changeset: 512:06222c5c8bf1 http://hg.mozilla.org/comm-central/rev/06222c5c8bf1 ->FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
This isn't fixed for me on Shredder 20081006095651. Selecting subfolder "[Gmail]/Trash" won't work, reverts to last selected top level folder.
Is that a nightly, or alpha3? This didn't make alpha3.
Alpha 3 :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: