Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Hidden prefs

Warning: The content of this article may be out of date. It was imported from mozilla.org and last updated in 2002.

This page has been flagged by editors or users as needing technical review. Until it is fully reviewed, it may contain inaccurate or incorrect information.

Address book

"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", "https://www.mapquest.com/maps/map.adp...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 https://lxr.mozilla.org/mozilla/sourc...drDatabase.idl for the list of valid attributes

"c" == contains.  see nsAbQueryStringToExpression::CreateBooleanConditionString() for other operators.

Mail composition

"other header" pref ("mail.compose.other.header")
The format for this a comma delimited list of mail headers, like "Approved,X-No-Archive"

An example for your prefs.js would be:
user_pref("mail.compose.other.header", "Approved");

This will cause "Approved" to show up in the compose window address picker, under To:, Cc:, Bcc:, Newsgroup:, etc.

For example:

Approved header example image

When that mail gets sent,
Approved: [email protected]
will be in the message in the headers.

This is a useful trick for newsgroup moderators who want moderate from mozilla.

Mail/News Prefs

"autcollect addresses" prefs

from mailnews.js:

// by default, only collect addresses the user sends to (outgoing)
pref("mail.collect_email_address_incoming", false);
pref("mail.collect_email_address_outgoing", true);
pref("mail.collect_email_address_newsgroup", false);

// by default, use the Personal Addressbook for collection
pref("mail.collect_addressbook","moz-abmdbdirectory://abook.mab");

For the reasons why the defaults changed, see this document on the Collected Address Book.

There is UI for the "mail.collect_email_address_outgoing" pref. See "Edit | Preferences.. | Mail & Newsgroups | Addressing"


"other compose header" pref

from mailnews.js:

// you can specify a comma delimited list of optional headers
// this will show up in the address picker in the compose window
// examples: "X-Face" or "Approved"
pref("mail.compose.other.header", "Approved,X-No-Archive");

Document Tags and Contributors

 Contributors to this page: fscholz, chrisdavidmills, jenzed
 Last updated by: chrisdavidmills,