16
edits
(correction) |
(→Contacts search query: restructure) |
||
Line 3: | Line 3: | ||
How to adjust the contacts search query in Thunderbird and Mozilla Addressbook? | How to adjust the contacts search query in Thunderbird and Mozilla Addressbook? | ||
The search field searches by default only in primaryemail, displayed Name, First Name and last name. But hey! Who had the phone number ending with 6789 and called me last night? Or who lives in Germany? Or who was born in July? | |||
If You open the advanced settings editor: '''Thunderbird Menu->Tools->Options->Advanced->General(tab)->Settings Editor(button)''' and type in the search field the phrase "search", you will get all the options, which have to do with searching. We will need the field named '''mail.addr_book.quicksearchquery.format''' for the adjustment of search area. | |||
This is the default search query: | |||
<code>?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))</code> | <code>?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))</code> | ||
Line 12: | Line 14: | ||
@V = search phrase | @V = search phrase | ||
It is possible to search in all fields - you can edit the search query in the advanced settings editor. Here how to do it: | |||
*[http://www.mozilla.org/mailnews/arch/addrbook/hiddenprefs.html#Addressbook_Quick_Search_Query_Pref Description of how to set up the search query in Mozilla Suite, SeaMonkey and Thunderbird Adderssbook] | |||
It is possible to search in all fields - you can edit the search query in the advanced settings editor. Here | *[http://lxr.mozilla.org/mozilla/source/mailnews/addrbook/public/nsIAddrDatabase.idl List of all Addressbook fields] (some are not displayed in the User Interface, though). This way, you can search in those fields, you really want. | ||
'''Medium example query''': | |||
<code>?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V)<br /> | <code>?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V)<br /> | ||
(SecondEmail,c,@V)(HomePhone,c,@V)(CellularNumber,c,@V)(Notes,c,@V))</code> | (SecondEmail,c,@V)(HomePhone,c,@V)(CellularNumber,c,@V)(Notes,c,@V))</code> | ||
''Maximum query'' - search in all addressbook fields used by Thunderbird: (must be one line, of course) | |||
<code>?(or(FirstName,c,@V)(LastName,c,@V)(PhoneticFirstName,c,@V)(PhoneticLastName,c,@V)<br />(_PhoneticName,c,@V)(DisplayName,c,@V)(NickName,c,@V)<br />(PrimaryEmail,c,@V)(SecondEmail,c,@V)<br />(WorkPhone,c,@V)(HomePhone,c,@V)(FaxNumber,c,@V)(PagerNumber,c,@V)(CellularNumber,c,@V)<br />(HomeAddress,c,@V)(HomeAddress2,c,@V)(HomeCity,c,@V)<br />(HomeState,c,@V)(HomeZipCode,c,@V)(HomeCountry,c,@V)<br />(WorkAddress,c,@V)(WorkAddress2,c,@V)(WorkCity,c,@V)<br />(WorkState,c,@V)(WorkZipCode,c,@V)(WorkCountry,c,@V)<br />(JobTitle,c,@V)(Department,c,@V)(Company,c,@V)<br />(_AimScreenName,c,@V)(WebPage1,c,@V)(WebPage2,c,@V)<br />(Custom1,c,@V)(Custom2,c,@V)(Custom3,c,@V)(Custom4,c,@V)(Notes,c,@V)) | |||
==Microformats== | ==Microformats== |
edits