Closed Bug 272966 Opened 20 years ago Closed 20 years ago

sort order on saved search folders does not persist

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 268981

People

(Reporter: charles, Assigned: sspitzer)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

I have a saved search folder in Thunderbird 1.0rc1, it is set to be every
message that isn't read (i.e. all my unread mail in one folder). However, the
sort order does not persist once I leave that folder for another and re-enter
it. I have to click the date tab at the top twice to get it to list by date
properly for that viewing.

It seems that whenever I re-enter the saved search foler, they are always listed
by the order of first, which folder they are found in, and within each folder
list they are in date ascending, when I want date descending. That is to say
that all the Inbox messages are listed togethter, then all the message from my
0_me folder, and then all my messages from my Test folder, and within each group
those are listed by date in the incorrect order. 

As I stated, if I click the date tab at the top twice.. it will properly list my
sort order. Also, in the View -> Sort By menu the proper setting is remembered,
however it is not displayed correctly.

Reproducible: Always
Steps to Reproduce:
1. Create a saved search folder with the properties Status isn't Read.
2. Choose to have this folder list by Date, Descending.
3. Leave the saved seach folder and re-enter it.

Actual Results:  
The messages are not displayed in the correct order.

Expected Results:  
Displayed the messages in descending date order, not folder then date ascending.
I confirm this not only for Unread but for any Saved Search Folders:

When opening a saved search-folder the messages are sorted by Location as
primary attribute and by the sort-by column (e.g. Date) as secondary.
I have to click on the column (2 times because of the direction) to get desired
sortingorder.
This bug seems to be related to the following two bugs:
268026
265869
Component: MailNews: Search → Mail Window Front End
Product: Mozilla Application Suite → Thunderbird
I can confirm that this occurs under 1.0 on Windows as well.  In fact, this is
quite an annoying bug to me.
(In reply to comment #3)
> I can confirm that this occurs under 1.0 on Windows as well.  In fact, this is
> quite an annoying bug to me.

Me, too.
*** Bug 273160 has been marked as a duplicate of this bug. ***
is this actually being looked at by developers.. the bug has been open for a
while with the only traffic being people adding themselves to the CC
I also have this problem.  An important point to reproducing this bug is that
your search folder MUST have more than one "folders set to search".  If your
search folder only examines a single folder, then the bug will not show up.

When you have more than one source folder for a search folder, thunderbird
automatically includes the "Location" column into your result list.  You can
attempt to remove this column, but it will reappear the next time you click on
the folder.  It seems the section of code that deals with a multi-source search
folder is both a) adding the location column and b) inadvertently clearing the
sort order.  

I tried to peek at the source, and I'm guessing the error is somewhere around
line 344 (  ShowLocationColumn(viewType ==
nsMsgViewType.eShowVirtualFolderResults); ) of commandglue.js


Any chance of this making it into 1.0.1, or is it already too late for that?
way too late, plus 1.01 is a security fix release.
(In reply to comment #9)
> way too late, plus 1.01 is a security fix release.

Is anyone even working on this at all?

BTW, this bug is still flagged as Linux, but it's really All -- according to
Chris Morris (comment #4) we now have two confirmed reports of this bug on Windows.
*** Bug 285719 has been marked as a duplicate of this bug. ***
It's not only that sorting isn't saved. Re-positioning of the columns isn't
stored either. I want the location column to be the first (coz grouping doesn't
work at all in search folders) but I have to move this column each time I launch
Thunderbird.
Could be a duplicate of bug# 268981. 
All these bugs could be the same, IMHO: the problem is always the
non-persistence of the sort order in virtual folders. 

Bug# 268026
Bug# 265869
Bug# 268981

Access protocols (POP/IMAP/local) seem to play no role in this. 

Please inspect further! 
Thanks, and keep up the good work!
Agree on dupe; the one I've picked as "the bug" already has three dupes against 
it.

*** This bug has been marked as a duplicate of 268981 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.