Closed Bug 534523 Opened 15 years ago Closed 14 years ago

Move to / Copy to Recent context submenu list doesn't sort folder names alphabetically [v3.0 regression]

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Thunderbird 3.3a2

People

(Reporter: jhframe, Assigned: bwinton)

References

()

Details

(Keywords: regression, Whiteboard: [gs][needs regression range])

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 The Move to Recent and Copy to Recent context submenu displays a list of most recently used folders. However, the folder list is not sorted alphabetically. (It might be sorted by most recently accessed, but if so the sort operation appears to include folders used by Thunderbird in its own actions, as in my installation the Junk and Inbox folders are always present in the list, despite the fact that I never manually move messages to them.) The absence of alpha sorting makes finding the desired folder name very tedious. This behavior is different from Thunderbird 2, in which alpha sorting was the norm. Reproducible: Always Steps to Reproduce: 1. Right-click on a message in the folder list. 2. Expand the Move to / Recent or Copy to / Recent submenu to reveal the list 3. Observe the absence of alpha sorting in the list. Actual Results: Observe the Recent list sorted by some means other than alphabetically. Expected Results: The list should be sorted in alphabetical order, or an option provided to control the manner in which the list is sorted.
indeed, this is a regression. v2 folder list had special folders at the top, and remaining folders alphabetical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Windows XP → All
Version: unspecified → 3.0
Whiteboard: [gs]
For the record, in Bug 551136 I'm talking about the "Recent Folders" pane at the left side (selected by the little arrows from "All Folders"), not the "Recent" list in the Move/Copy. The latter seems to be an entirely different list -- much shorter, and much older access by date, with none of the blue highlighted folders in it! Moreover, my Move/Copy Recent list has entries at the bottom that haven't been touched for over a year (according to the file dates), and are not in the "Recent Folders" pane. Finally, my Move/Copy Recent list has only 15 entries, while my "Recent Folders" list has mostly different entries, including the folder that's populated by bugzilla messages (now at the top).
Here is a picture showing both forms of Recent folders. Note that they don't match each other, neither is sorted in the same order, and they don't have most of the 26 recently downloaded folders. (Private emails blanked.)
SO, a YEAR later, is it so difficult to simply revert to the v2.x.x logic, where IT WORKED?
I almost hate to work on this, lest people think that they can get results by complaining, but it has been bothering me for a while, and I did touch this code in the not too distant past, so here's a patch that alphabetizes the recent folders before displaying them. Later, Blake.
Attachment #498773 - Flags: ui-review?(clarkbw)
Attachment #498773 - Flags: review?(bienvenu)
Thank you. Seriously and sincerely. Now, how and to what does one apply the patch?
You would apply it to http://hg.mozilla.org/comm-central/ (In theory, anyways. I've actually developed it on comm-central rev 42371756f234, and mozilla-central rev cdb7dae6fdbb.) Also, just as an fyi, reverting really would be that difficult, because the bit of code that handles the folder popups (and recent folder mode) has been completely rewritten since Thunderbird 2.x, in an incompatible (but much easier to work with) way. Later, Blake.
Comment on attachment 498773 [details] [diff] [review] A patch to sort the two recent folder lists alphabetically. Yeah, that's cleaner. Thanks Blake! You are a warrior :)
Attachment #498773 - Flags: ui-review?(clarkbw) → ui-review+
Comment on attachment 498773 [details] [diff] [review] A patch to sort the two recent folder lists alphabetically. this is not working for me at all - I don't know if it's a build issue or what...
Attachment #498773 - Flags: review?(bienvenu) → review+
In the interests of my actually taking a vacation, I'm going to mark this checkin-needed, instead of checking it in and having to watch the tree myself. ;) It also needs tests, which I'll probably write in the new year. Thanks, Blake.
Assignee: nobody → bwinton
Status: NEW → ASSIGNED
Flags: in-testsuite?
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a2
appears to be working in current trunk.
Status: RESOLVED → VERIFIED
Summary: Move to / Copy to Recent context submenu list doesn't sort folder names alphabetically. → Move to / Copy to Recent context submenu list doesn't sort folder names alphabetically [v3.0 regression]
Blocks: 551137
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: