Closed Bug 542953 Opened 14 years ago Closed 14 years ago

with global search and indexer turned off the search box still defaults to 'all messages' for searches

Categories

(Thunderbird :: Search, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alavaliant, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100122 Firefox/3.6
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100122 Lightning/1.0b1 Thunderbird/3.0.1

with 'Enable global search and indexer' turned off / mailnews.database.global.indexer.enabled = false
when thunderbird is newly started the search box defaults to 'all messages' as the search type to perform.    That is non optimal since 'all messages' doesn't function with the indexer turned off.

It would be more user friendly / make more sense if the default was an option such as 'Subject, from or, Recipient filter' was picked as the default if the indexer is turned off.   (Particularly as how things currently are has the search box selecting an option that's not in the list of selectable search options...)



Reproducible: Always

Steps to Reproduce:
1.   edit -> preferences -> advanced -> general -> untick 'Enable global search and indexer'  -> ok
2.  close and reopen thunderbird
3.  look at the search box in the top right of the thunderbird window.   'all messages' will be displayed as the search type and if you search without selecting another search type no results will be returned 
Actual Results:  
no search results due to invalid search option being the default (with the current settings)

Expected Results:  
for the search to return results without needing to change the search option to something other than 'all messages'
Attached image screenshot showing bug
Screenshot from my thunderbird, you'll note that the search box has 'all messages' selected even though it's not a selectable option currently.   So it looks like whatever generates the selectable search options is correctly detecting what is a valid option and removing 'all messages' due to the indexer being turned off but whatever sets the default search on startup isn't and is leaving 'all messages' incorrectly selected.
do you also see the problem when started in safe mode?
(In reply to comment #2)
> do you also see the problem when started in safe mode?

yes, the problem still occurs in safe mode.

Also anticipating other possible questions - the problem also still occurs if I rm -fR ~/.thunderbird and start with a completely fresh set of user settings.
alavaliant
do you still see this problem in v3.0.3?
if you have it "enabled", does searching work correctly?
 (related to that question, it has been reported one might see your problem when the gloda index is corrupted.
things are a bit better with 3.0.2  (I've not bothered compiling 3.0.3 to test with since the changelog has only one change which was a windows bug).

Currently if an existing user selects a search option the option then remains selected between closing and reopening thunderbird.

However a brand new user with no settings still gets 'all messages' set as the search option on default (even though in my case since I've got mozilla Autoconfig setup to disable gloda by default gloda is never on new a new set of prefs so that setting is wrong.)

turning gloda on and off has no effect on the issue.
Ok do you have a global-messages-db.sqlite in your profile ?
related from gsfn?   eg. http://gsfn.us/t/ngcx  not the same issues, and not "confirmed", just speculation

"Discovered I had to turn global indexing off, shut down Thunderbird, turn global indexing off, shut down Thunderbird, more than once for the setting to stick."
This is also happening with 3.0.4/Windows (reproduced on my three different machines (W7, Vista and XP)), and if I remember correctly it was there from the first 3.0 release.
Fairly annoying, to put it mildly...
This is going to be fixed as part of bug 545955.
Depends on: filterbar
Bug 545955 moots this; it will be available in Thunderbird 3.1 beta 2.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: