You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Hidden Addressbook Prefs


"Get Map" button pref ("mail.addr_book.mapit_url.format" )
The format for this pref  is:

@A1 == address, part 1
@A2 == address, part 2
@CI == city
@ST == state
@ZI == zip code
@CO == country

If the pref is set to "", no "Get Map" button will appear in the addressbook card preview pane.

The default (defined in mailnews.js) is:

pref("mail.addr_book.mapit_url.format", "http://www.mapquest.com/maps/map.adp?country=@CO&address=@A1%20@A2&city=@CI&state=@ST&zipcode=@ZI");

Addressbook Quick Search Query Pref ("mail.addr_book.quicksearchquery.format" )
The format for this pref is:

@V == the escaped value typed in the quick search bar in the addressbook

Every occurance of @V will be replaced.

Note, the UI has "Name or Email Contains:".  This entity (SearchNameOrEmail.label) is defined in messenger.dtd.  So if you change
the quick search query to match based on phone number, the UI will not match the query.

The default (defined in mailnews.js) is:

pref("mail.addr_book.quicksearchquery.format","?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V))");

"and", "or" and "not" are valid.
See http://lxr.mozilla.org/mozilla/source/mailnews/addrbook/public/nsIAddrDatabase.idl for the list of valid attributes.
"c" == contains.  see nsAbQueryStringToExpression::CreateBooleanConditionString() for other operators.