Closed Bug 562708 Opened 14 years ago Closed 14 years ago

Folder preference for gloda indexing does not work for trash/junk/outbox folders (not retained)

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect
Not set
normal

Tracking

(thunderbird3.1 .3-fixed)

VERIFIED FIXED
Thunderbird 3.3a1
Tracking Status
thunderbird3.1 --- .3-fixed

People

(Reporter: rkent, Assigned: standard8)

References

()

Details

(Whiteboard: [gs])

Attachments

(1 file)

Per http://getsatisfaction.com/mozilla_messaging/topics/search_trash_folder_with_new_index_search_in_tb3_howto there is demand for enabling gloda indexing on the trash folder. But when I tried the new folder preference (using a TB 3.1 nightly) it does not stick:

STR:

1) In folder pane, get the folder properties for the trash pane
2) check to enable "Include messages in this folder in Global search results"
3) press OK to save folder
4) display folder properties again

expected: "Include messages ... " is checked
actual: "Include messages ... " is not checked.
Version: 3.0 → Trunk
I am definitely looking forward to seeing this *work*

Junk and Trash are two boxes where things wind up by accident sometimes. Having the option to search them is hugely valuable.
This is also a problem for our users; they search for things and can't understand why Tbird can't find them even though other clients can.  Definitely need to be able to search in Trash at least!
Andrew, any ideas what is going on where?
Flags: wanted-thunderbird+
Summary: folder preference for gloda indexing does not work for trash → folder preference for gloda indexing does not work for trash (not retained)
Please add an option to support indexing of the Trash folders, even if it may need to be enabled through the config editor.
(In reply to comment #4)
> Please add an option to support indexing of the Trash folders, even if it may
> need to be enabled through the config editor.

Option is present right click on the trash and look into properties.
Summary: folder preference for gloda indexing does not work for trash (not retained) → Folder preference for gloda indexing does not work for trash/junk/outbox folders (not retained)
Assignee: nobody → bugzilla
OS: Windows XP → All
Hardware: x86 → All
Attached patch Proposed fixSplinter Review
There's two parts to this patch.

1) First there's a correction to the UI - the gloda checkbox wasn't being hidden when gloda was disabled or for the outbox.

Turns out that for the gloda disabled part the code was being hit, but then hideShowControls() was overriding the action. So I've moved that action above where the gloda overrides are done, and then I've added queue and newsgroup folder types to definitely make sure we disable on those.

2) resetFolderIndexingPriority was being called on a folder when the gloda box on the properties dialog was being checked. However, for Trash and Junk, this meant it was being rest to "never". I've therefore added a parameter to resetFolderIndexingPriority to allow indexing on special folders - i.e. if its the trash or junk it will be set to the default priority rather than never.

This then seems to work correctly for indexing if the user wants to enable it.
Attachment #463550 - Flags: review?(bugmail)
Comment on attachment 463550 [details] [diff] [review]
Proposed fix

sure
Attachment #463550 - Flags: review?(bugmail) → review+
Checked in: http://hg.mozilla.org/comm-central/rev/65708cb363ab
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.2a1
Comment on attachment 463550 [details] [diff] [review]
Proposed fix

We should consider this for 3.1.3.
Attachment #463550 - Flags: approval-thunderbird3.1.3?
Attachment #463550 - Flags: approval-thunderbird3.1.3? → approval-thunderbird3.1.3+
I posted the link for 3.1.3pre in http://gsfn.us/t/nrge to get feedback
Whiteboard: [gs]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3
Status: RESOLVED → VERIFIED
Blocks: 819340
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: