Thunderbird is a highly configurable email client. Configurable software is very effective with people who want to customize the software for their specific demands. I had one such experience recently.
A friend wanted to search more fields using the Thunderbird’s addressbook search. By default, it looks only at the email address and the names of a contact. Whereas he wanted it to search in the Organization and screen name fields. Since he did not find a GUI preference that let him do this, he asked me if Thunderbird was configurable enough to get this done. So here we go.
Go to Edit-Preferences-Advanced-General Tab-Config Editor to open it. The path might be Tools-Options-Advanced… if you are on Windows. Once it opens, type quicksearch in the filter text box, which will return the preference mail.addr_book.quicksearchquery.format. If you look at the value, it uses a specific syntax to look at the PrimaryEmail, DisplayName, FirstName, LastName fields. To include Organization in the search fields, insert (Company,c,@V) immediately after (LastName,c,@V). The value is now:
?(or(PrimaryEmail,c,@V)...(LastName,c,@V)(Company,c,@V))
That’s it, now when you use the search in the address book, it will look for your string in the Organization field as well. How did I know the field corresponding to Organization was called Company? Type attr in the filter text box, and you will find the various attributes. Similarly add one for _AimScreenName and the search will now look through it as well.

August 23rd, 2010 at 5:27 pm
Fantastic tip – many thanks! Saved me a moan, that did
September 8th, 2010 at 5:08 pm
Hello,
thx for the tip.
Do you know if it’s possible to modify Thunderbird’s Addressbook Search to do a query in multiple adressbook ?
December 8th, 2010 at 2:28 am
Great tip! Been searching for this for ages – thanks!
December 20th, 2010 at 12:28 am
Outstanding! Thank you very much–I’ve needed this.
December 25th, 2010 at 8:07 pm
Any Idea what file to edit using TB3.1.6 on a Mac?
June 10th, 2011 at 1:24 pm
Great have been playing with a simple database that can be searched.
However I am trying to use for the Notes section where I am looking to do a free text search, I have added in the format you mention (notes,c,@V), but does not seem to work, please email the exact string I neeed as I am sure it is an error input end
Cheers
June 14th, 2011 at 1:10 pm
Thanks for the tip. However, I could not get Organization to work. I did not find an attrmap for Organization. I did, however, get Notes to work and am happy as my contacts are a recent import from Outlook. Using TBird 3.1.10.
July 16th, 2011 at 2:53 pm
Great tip!
Thank You very much for sharing this.
July 16th, 2011 at 8:06 pm
Thank you very much for the tip.
Its very helpful.
Jeremy please read carefully post and you will find an answeR.
August 25th, 2011 at 2:06 pm
perfect !
also (Notes,c,@V) works checked
August 29th, 2011 at 7:35 pm
I used the (Notes,c,@V) as mentioned by others. In order to make it work for me I had to simply restart thunderbird. After restart, it worked like a charm!
Good luck!
September 17th, 2011 at 11:21 am
Tip did not work. My language used is Afrikaans. The attr gave the English names. I checked and everything is as you stated, except that teh quick search still does not work on the addres book QuickSearch field.
Any tip what to do? Please, I need it very much.
September 21st, 2011 at 8:07 pm
Hercules, I will try to see if I can dig up something.
September 21st, 2011 at 8:08 pm
Rob, I am glad you found more. These options for configurations make it fun to use these softwares.
September 26th, 2011 at 8:37 pm
Thank you so much!!
I’ve been looking for this for years!!
Thunderbird is a great client, but it’s users are even greater!!!!
January 3rd, 2012 at 6:37 pm
Wow! Excellent! Perfect! Fantastic!
Why is this not an option in Thunderbird. It would seem easy enough to implement via the UI.
Also, Perhaps an option to include the Notes field.
I sync with Google Contacts and I find myself searching my contacts all the time in Google Contacts instead because it searches all fields – including notes.
January 23rd, 2012 at 3:57 pm
Great, thanx! It works.
February 1st, 2012 at 3:27 pm
Thank you for this great tweak. I have been looking for it for long time!
Is there anyone who knows how to search in all address books simultaneously? This is at least as important for me.
May 7th, 2012 at 7:06 pm
Hi, thx for the above hints. They proved AMAZINGLY helpful.
Now, I can search for almost everything.
HOWEVER, how would you attempt to search for two different criteria? For example you want to search for a company and then for a certain name in that company? Any ideas are welcome.