/thunderbird-14.0/comm-release/mailnews/mailnews.js

# · JavaScript · 841 lines · 447 code · 124 blank · 270 comment · 0 complexity · faa995463df1875926379bcb4efc8347 MD5 · raw file

  1. /* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is mozilla.org code.
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 1998
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. * Dan Mosedale <dan.mosedale@oracle.com>
  24. * Olivier Parniere BT Global Services / Etat francais Ministere de la Defense
  25. *
  26. * Alternatively, the contents of this file may be used under the terms of
  27. * either of the GNU General Public License Version 2 or later (the "GPL"),
  28. * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29. * in which case the provisions of the GPL or the LGPL are applicable instead
  30. * of those above. If you wish to allow use of your version of this file only
  31. * under the terms of either the GPL or the LGPL, and not to allow others to
  32. * use your version of this file under the terms of the MPL, indicate your
  33. * decision by deleting the provisions above and replace them with the notice
  34. * and other provisions required by the GPL or the LGPL. If you do not delete
  35. * the provisions above, a recipient may use your version of this file under
  36. * the terms of any one of the MPL, the GPL or the LGPL.
  37. *
  38. * ***** END LICENSE BLOCK ***** */
  39. // SpaceHit() function: whether spacebar advances to next unread message.
  40. pref("mail.advance_on_spacebar", true);
  41. //mailnews.timeline_is_enabled should be set to true ONLY for perf measurement-timeline builds.
  42. pref("mailnews.timeline_is_enabled", false);
  43. pref("mailnews.logComposePerformance", false);
  44. pref("mail.wrap_long_lines", true);
  45. pref("mail.inline_attachments", true);
  46. pref("mail.reply_quote_inline", false);
  47. // hidden pref for controlling if the user agent string
  48. // is displayed in the message pane or not...
  49. pref("mailnews.headers.showUserAgent", false);
  50. // hidden pref for controlling if the organization string
  51. // is displayed in the message pane or not...
  52. pref("mailnews.headers.showOrganization", false);
  53. // hidden pref for controlling if the references header
  54. // is displayed in the message pane or not...
  55. pref("mailnews.headers.showReferences", false);
  56. // hidden pref for controlling if the message-id header
  57. // is displayed in the message pane or not...
  58. pref("mailnews.headers.showMessageId", false);
  59. // hidden pref for controlling if the message to a message-id
  60. // is opened in a new window or in the same window
  61. pref("mailnews.messageid.openInNewWindow", false);
  62. // hidden pref for url which will be used to open message-ids
  63. // in browser (%mid ist replaced with the message-id)
  64. pref("mailnews.messageid_browser.url", "chrome://messenger-region/locale/region.properties");
  65. // hidden pref for whether or not to warn when deleting filters. Default YES
  66. pref("mailnews.filters.confirm_delete", true);
  67. // space-delimited list of extra headers to show in msg header display area.
  68. pref("mailnews.headers.extraExpandedHeaders", "");
  69. // default sort order settings (when creating new folder views)
  70. // sort_order is an int value reflecting nsMsgViewSortOrder values
  71. // as defined in nsIMsgDBView.idl (ascending = 1, descending = 2)
  72. // sort_type is an int value reflecting nsMsgViewSortType values
  73. // as defined in nsIMsgDBView.idl (byDate = 18, byId = 21 etc.)
  74. pref("mailnews.default_sort_order", 1); // for Mail/RSS/... (nsMsgDatabase)
  75. pref("mailnews.default_sort_type", 18); //
  76. pref("mailnews.default_news_sort_order", 1); // for News (nsNewsDatabase)
  77. pref("mailnews.default_news_sort_type", 21); //
  78. // default view flags for new folders
  79. // both flags are int values reflecting nsMsgViewFlagsType values
  80. // as defined in nsIMsgDBView.idl (kNone = 0, kThreadedDisplay = 1 etc.)
  81. pref("mailnews.default_view_flags", 0); // for Mail/RSS/... (nsMsgDatabase)
  82. pref("mailnews.default_news_view_flags", 1); // for News (nsNewsDatabase)
  83. // If true, delete will use the direction of the sort order
  84. // in determining the next message to select.
  85. pref("mail.delete_matches_sort_order", false);
  86. // mailnews tcp read+write timeout in seconds.
  87. pref("mailnews.tcptimeout", 100);
  88. pref("mailnews.headers.showSender", false);
  89. // set to 0 if you don't want to ignore timestamp differences between
  90. // local mail folders and the value stored in the corresponding .msf file.
  91. // 0 was the default up to and including 1.5. I've made the default
  92. // be greater than one hour so daylight savings time changes don't affect us.
  93. // We will still always regenerate .msf files if the file size changes.
  94. pref("mail.db_timestamp_leeway", 4000);
  95. pref("mail.imap.chunk_size", 65536);
  96. pref("mail.imap.min_chunk_size_threshold", 98304);
  97. pref("mail.imap.chunk_fast", 2);
  98. pref("mail.imap.chunk_ideal", 4);
  99. pref("mail.imap.chunk_add", 8192);
  100. pref("mail.imap.hide_other_users", false);
  101. pref("mail.imap.hide_unused_namespaces", true);
  102. pref("mail.imap.auto_unsubscribe_from_noselect_folders", true);
  103. pref("mail.imap.mime_parts_on_demand", true);
  104. pref("mail.imap.mime_parts_on_demand_threshold", 30000);
  105. pref("mail.imap.use_literal_plus", true);
  106. pref("mail.imap.expunge_after_delete", false);
  107. pref("mail.imap.check_deleted_before_expunge", false);
  108. pref("mail.imap.expunge_option", 0);
  109. pref("mail.imap.expunge_threshold_number", 20);
  110. pref("mail.imap.hdr_chunk_size", 200);
  111. // if true, we assume that a user access a folder in the other users namespace
  112. // is acting as a delegate for that folder, and wishes to use the other users
  113. // identity when acting on messages in other users folders.
  114. pref("mail.imap.delegateOtherUsersFolders", false);
  115. pref("mail.thread_without_re", false); // if false, only thread by subject if Re:
  116. pref("mail.strict_threading", true); // if true, don't thread by subject at all
  117. pref("mail.correct_threading", true); // if true, makes sure threading works correctly always (see bug 181446)
  118. pref("mail.pop3.deleteFromServerOnMove", false);
  119. pref("mail.fixed_width_messages", true);
  120. pref("mail.citation_color", "#000000"); // quoted color
  121. pref("mail.quoted_style", 0); // 0=plain, 1=bold, 2=italic, 3=bolditalic
  122. pref("mail.quoted_size", 0); // 0=normal, 1=big, 2=small
  123. pref("mail.quoted_graphical", true); // use HTML-style quoting for displaying plain text
  124. pref("mail.quoteasblock", true); // use HTML-style quoting for quoting plain text
  125. pref("mail.strictly_mime", false);
  126. pref("mail.strictly_mime_headers", true);
  127. // 0/1 (name param is encoded in a legacy way), 2(RFC 2231 only)
  128. // 0 the name param is never separated to multiple lines.
  129. pref("mail.strictly_mime.parm_folding", 1);
  130. pref("mail.label_ascii_only_mail_as_us_ascii", false);
  131. pref("mail.file_attach_binary", false);
  132. pref("mail.show_headers", 1); // some
  133. pref("mail.pane_config.dynamic", 0);
  134. pref("mail.addr_book.mapit_url.format", "chrome://messenger-region/locale/region.properties");
  135. #ifdef MOZ_SUITE
  136. pref("mailnews.start_page.url", "chrome://messenger-region/locale/region.properties");
  137. pref("messenger.throbber.url", "chrome://messenger-region/locale/region.properties");
  138. pref("compose.throbber.url", "chrome://messenger-region/locale/region.properties");
  139. pref("addressbook.throbber.url", "chrome://messenger-region/locale/region.properties");
  140. pref("mail.accountwizard.deferstorage", false);
  141. // |false|: Show both name and address, even for people in my addressbook.
  142. pref("mail.showCondensedAddresses", false);
  143. #endif
  144. // the format for "mail.addr_book.quicksearchquery.format" is:
  145. // @V == the escaped value typed in the quick search bar in the addressbook
  146. //
  147. // note, changing this might require a change to SearchNameOrEmail.label in
  148. // messenger.dtd or searchNameAndEmail.emptytext in abMainWindow.dtd
  149. pref("mail.addr_book.quicksearchquery.format", "chrome://messenger/locale/messenger.properties");
  150. // values for "mail.addr_book.lastnamefirst" are:
  151. //0=displayname, 1=lastname first, 2=firstname first
  152. pref("mail.addr_book.lastnamefirst", 0);
  153. pref("mail.addr_book.displayName.autoGeneration", true);
  154. pref("mail.addr_book.displayName.lastnamefirst", "chrome://messenger/locale/messenger.properties");
  155. pref("mail.addr_book.show_phonetic_fields", "chrome://messenger/locale/messenger.properties");
  156. pref("mail.html_compose", true);
  157. // you can specify multiple, option headers
  158. // this will show up in the address picker in the compose window
  159. // examples: "X-Face" or "Approved,X-No-Archive"
  160. pref("mail.compose.other.header", "");
  161. pref("mail.compose.autosave", true);
  162. pref("mail.compose.autosaveinterval", 5); // in minutes
  163. pref("mail.default_html_action", 0); // 0=ask, 1=plain, 2=html, 3=both
  164. pref("mail.mdn.report.not_in_to_cc", 2); // 0: Never 1: Always 2: Ask me
  165. pref("mail.mdn.report.outside_domain", 2); // 0: Never 1: Always 2: Ask me
  166. pref("mail.mdn.report.other", 2); // 0: Never 1: Always 2: Ask me 3: Denial
  167. pref("mail.incorporate.return_receipt", 0); // 0: Inbox/filter 1: Sent folder
  168. pref("mail.request.return_receipt", 2); // 1: DSN 2: MDN 3: Both
  169. pref("mail.receipt.request_header_type", 0); // 0: MDN-DNT header 1: RRT header 2: Both (MC)
  170. pref("mail.receipt.request_return_receipt_on", false);
  171. pref("mail.mdn.report.enabled", true); // false: Never send true: Send sometimes
  172. pref("mail.dsn.always_request_on", false);
  173. pref("mail.dsn.request_on_success_on", true); // DSN request is sent with SUCCESS option
  174. pref("mail.dsn.request_on_failure_on", true); // DSN request is sent with FAILURE option
  175. pref("mail.dsn.request_on_delay_on", true); // DSN request is sent with DELAY option
  176. pref("mail.dsn.request_never_on", false); // DSN request is not sent with NEVER option
  177. pref("mail.dsn.ret_full_on", true); // DSN request is sent with RET FULL option
  178. pref("news.show_size_in_lines", true);
  179. pref("news.update_unread_on_expand", true);
  180. pref("news.get_messages_on_select", true);
  181. pref("news.allow_delete_with_no_undo", false);
  182. pref("mailnews.wraplength", 72);
  183. pref("mail.compose.wrap_to_window_width", false);
  184. // 0=no header, 1="<author> wrote:", 2="On <date> <author> wrote:", 3="<author> wrote On <date>:", 4=user specified
  185. pref("mailnews.reply_header_type", 1);
  186. // locale which affects date format, set empty string to use application default locale
  187. pref("mailnews.reply_header_locale", "");
  188. pref("mailnews.reply_header_authorwrote", "chrome://messenger/locale/messengercompose/composeMsgs.properties");
  189. pref("mailnews.reply_header_ondate", "chrome://messenger/locale/messengercompose/composeMsgs.properties");
  190. // separator to separate between date and author
  191. pref("mailnews.reply_header_separator", ", ");
  192. pref("mailnews.reply_header_colon", ":");
  193. pref("mailnews.reply_header_originalmessage", "chrome://messenger/locale/messengercompose/composeMsgs.properties");
  194. pref("mailnews.reply_to_self_check_all_ident", false);
  195. pref("mailnews.reply_quoting_selection", true);
  196. pref("mailnews.reply_quoting_selection.only_if_chars", "");
  197. pref("mailnews.reply_quoting_selection.multi_word", true);
  198. pref("mail.operate_on_msgs_in_collapsed_threads", false);
  199. pref("mail.warn_on_collapsed_thread_operation", true);
  200. pref("mail.purge_threshhold_mb", 20);
  201. pref("mail.prompt_purge_threshhold", true);
  202. pref("mail.purge.ask", true);
  203. pref("mailnews.offline_sync_mail", false);
  204. pref("mailnews.offline_sync_news", false);
  205. pref("mailnews.offline_sync_send_unsent", true);
  206. pref("mailnews.offline_sync_work_offline", false);
  207. pref("mailnews.force_ascii_search", false);
  208. pref("mailnews.send_default_charset", "chrome://messenger/locale/messenger.properties");
  209. pref("mailnews.view_default_charset", "chrome://messenger/locale/messenger.properties");
  210. pref("mailnews.force_charset_override", false); // ignore specified MIME encoding and use the default encoding for display
  211. pref("mailnews.reply_in_default_charset", false);
  212. // mailnews.disable_fallback_to_utf8.<charset>
  213. // don't fallback from <charset> to UTF-8 even if some characters are not found in <charset>.
  214. // those characters will be crippled.
  215. pref("mailnews.disable_fallback_to_utf8.ISO-2022-JP", false);
  216. pref("mailnews.localizedRe", "chrome://messenger-region/locale/region.properties");
  217. pref("mailnews.search_date_format", "chrome://messenger/locale/messenger.properties");
  218. pref("mailnews.search_date_separator", "chrome://messenger/locale/messenger.properties");
  219. pref("mailnews.search_date_leading_zeros", "chrome://messenger/locale/messenger.properties");
  220. pref("mailnews.quotingPrefs.version", 0); // used to decide whether to migrate global quoting prefs
  221. // the first time, we'll warn the user about the blind send, and they can disable the warning if they want.
  222. pref("mapi.blind-send.enabled", true);
  223. pref("offline.autoDetect", false); // automatically move the user offline or online based on the network connection
  224. pref("ldap_2.autoComplete.useDirectory", false);
  225. pref("ldap_2.autoComplete.directoryServer", "");
  226. pref("ldap_2.servers.pab.position", 1);
  227. pref("ldap_2.servers.pab.description", "chrome://messenger/locale/addressbook/addressBook.properties");
  228. pref("ldap_2.servers.pab.dirType", 2);
  229. pref("ldap_2.servers.pab.filename", "abook.mab");
  230. pref("ldap_2.servers.pab.isOffline", false);
  231. pref("ldap_2.servers.history.position", 2);
  232. pref("ldap_2.servers.history.description", "chrome://messenger/locale/addressbook/addressBook.properties");
  233. pref("ldap_2.servers.history.dirType", 2);
  234. pref("ldap_2.servers.history.filename", "history.mab");
  235. pref("ldap_2.servers.history.isOffline", false);
  236. // default mapping of addressbook properties to ldap attributes
  237. pref("ldap_2.servers.default.attrmap.FirstName", "givenName");
  238. pref("ldap_2.servers.default.attrmap.LastName", "sn,surname");
  239. pref("ldap_2.servers.default.attrmap.DisplayName", "cn,commonname");
  240. pref("ldap_2.servers.default.attrmap.NickName", "mozillaNickname,xmozillanickname");
  241. pref("ldap_2.servers.default.attrmap.PrimaryEmail", "mail");
  242. pref("ldap_2.servers.default.attrmap.SecondEmail", "mozillaSecondEmail,xmozillasecondemail");
  243. pref("ldap_2.servers.default.attrmap.WorkPhone", "telephoneNumber");
  244. pref("ldap_2.servers.default.attrmap.HomePhone", "homePhone");
  245. pref("ldap_2.servers.default.attrmap.FaxNumber", "facsimiletelephonenumber,fax");
  246. pref("ldap_2.servers.default.attrmap.PagerNumber", "pager,pagerphone");
  247. pref("ldap_2.servers.default.attrmap.CellularNumber", "mobile,cellphone,carphone");
  248. pref("ldap_2.servers.default.attrmap.WorkAddress", "street,streetaddress,postOfficeBox");
  249. pref("ldap_2.servers.default.attrmap.HomeAddress", "mozillaHomeStreet");
  250. pref("ldap_2.servers.default.attrmap.WorkAddress2", "mozillaWorkStreet2");
  251. pref("ldap_2.servers.default.attrmap.HomeAddress2", "mozillaHomeStreet2");
  252. pref("ldap_2.servers.default.attrmap.WorkCity", "l,locality");
  253. pref("ldap_2.servers.default.attrmap.HomeCity", "mozillaHomeLocalityName");
  254. pref("ldap_2.servers.default.attrmap.WorkState", "st,region");
  255. pref("ldap_2.servers.default.attrmap.HomeState", "mozillaHomeState");
  256. pref("ldap_2.servers.default.attrmap.WorkZipCode", "postalCode,zip");
  257. pref("ldap_2.servers.default.attrmap.HomeZipCode", "mozillaHomePostalCode");
  258. pref("ldap_2.servers.default.attrmap.WorkCountry", "c,countryname");
  259. pref("ldap_2.servers.default.attrmap.HomeCountry", "mozillaHomeCountryName");
  260. pref("ldap_2.servers.default.attrmap.JobTitle", "title");
  261. pref("ldap_2.servers.default.attrmap.Department", "ou,department,departmentnumber,orgunit");
  262. pref("ldap_2.servers.default.attrmap.Company", "o,company");
  263. pref("ldap_2.servers.default.attrmap._AimScreenName", "nsAIMid,nscpaimscreenname");
  264. pref("ldap_2.servers.default.attrmap.WebPage1", "mozillaWorkUrl,workurl,labeledURI");
  265. pref("ldap_2.servers.default.attrmap.WebPage2", "mozillaHomeUrl,homeurl");
  266. pref("ldap_2.servers.default.attrmap.BirthYear", "birthyear");
  267. pref("ldap_2.servers.default.attrmap.BirthMonth", "birthmonth");
  268. pref("ldap_2.servers.default.attrmap.BirthDay", "birthday");
  269. pref("ldap_2.servers.default.attrmap.Custom1", "mozillaCustom1,custom1");
  270. pref("ldap_2.servers.default.attrmap.Custom2", "mozillaCustom2,custom2");
  271. pref("ldap_2.servers.default.attrmap.Custom3", "mozillaCustom3,custom3");
  272. pref("ldap_2.servers.default.attrmap.Custom4", "mozillaCustom4,custom4");
  273. pref("ldap_2.servers.default.attrmap.Notes", "description,notes");
  274. pref("ldap_2.servers.default.attrmap.PreferMailFormat", "mozillaUseHtmlMail,xmozillausehtmlmail");
  275. pref("ldap_2.servers.default.attrmap.LastModifiedDate", "modifytimestamp");
  276. pref("ldap_2.user_id", 0);
  277. pref("ldap_2.version", 3); /* Update kCurrentListVersion in include/dirprefs.h if you change this */
  278. pref("mailnews.confirm.moveFoldersToTrash", true);
  279. // space-delimited list of extra headers to add to .msf file
  280. pref("mailnews.customDBHeaders", "");
  281. // close standalone message window when deleting the displayed message
  282. pref("mail.close_message_window.on_delete", false);
  283. #ifdef MOZ_SUITE
  284. pref("mailnews.reuse_message_window", true);
  285. #endif
  286. pref("mailnews.open_window_warning", 10); // warn user if they attempt to open more than this many messages at once
  287. pref("mailnews.start_page.enabled", true);
  288. pref("mailnews.remember_selected_message", true);
  289. pref("mailnews.scroll_to_new_message", true);
  290. // if true, any click on a column header other than the thread column will unthread the view
  291. pref("mailnews.thread_pane_column_unthreads", false);
  292. pref("mailnews.account_central_page.url", "chrome://messenger/locale/messenger.properties");
  293. /* default prefs for Mozilla 5.0 */
  294. pref("mail.identity.default.compose_html", true);
  295. pref("mail.identity.default.valid", true);
  296. pref("mail.identity.default.fcc", true);
  297. pref("mail.identity.default.fcc_folder", "mailbox://nobody@Local%20Folders/Sent");
  298. pref("mail.identity.default.fcc_reply_follows_parent", false);
  299. pref("mail.identity.default.autocompleteToMyDomain", false);
  300. pref("mail.identity.default.archive_enabled", true);
  301. // archive into 0: single folder, 1: yearly folder, 2: year/year-month folder
  302. pref("mail.identity.default.archive_granularity", 1);
  303. pref("mail.identity.default.archive_keep_folder_structure", false);
  304. // keep these defaults for backwards compatibility and migration
  305. // but .doBcc and .doBccList are the right ones from now on.
  306. pref("mail.identity.default.bcc_self", false);
  307. pref("mail.identity.default.bcc_others", false);
  308. pref("mail.identity.default.bcc_list", "");
  309. pref("mail.identity.default.draft_folder", "mailbox://nobody@Local%20Folders/Drafts");
  310. pref("mail.identity.default.stationery_folder", "mailbox://nobody@Local%20Folders/Templates");
  311. pref("mail.identity.default.directoryServer", "");
  312. pref("mail.identity.default.overrideGlobal_Pref", false);
  313. pref("mail.identity.default.auto_quote", true);
  314. pref("mail.identity.default.reply_on_top", 0); // 0=bottom 1=top 2=select
  315. pref("mail.identity.default.sig_bottom", true); // true=below quoted false=above quoted
  316. pref("mail.identity.default.sig_on_fwd", false); // Include signature on fwd?
  317. pref("mail.identity.default.sig_on_reply", true); // Include signature on re?
  318. // Suppress double-dash signature separator
  319. pref("mail.identity.default.suppress_signature_separator", false);
  320. // default to archives folder on same server.
  321. pref("mail.identity.default.archives_folder_picker_mode", "0");
  322. // Headers to always add to outgoing mail
  323. // examples: "header1,header2"
  324. // pref("mail.identity.id1.headers", "header1");
  325. // user_pref("mail.identity.id1.header.header1", "X-Mozilla-Rocks: True")
  326. pref("mail.identity.default.headers", "");
  327. // by default, only collect addresses the user sends to (outgoing)
  328. // incoming is all spam anyways
  329. #ifdef MOZ_SUITE
  330. pref("mail.collect_email_address_incoming", false);
  331. pref("mail.collect_email_address_newsgroup", false);
  332. #endif
  333. pref("mail.collect_email_address_outgoing", true);
  334. // by default, use the Collected Addressbook for collection
  335. pref("mail.collect_addressbook", "moz-abmdbdirectory://history.mab");
  336. pref("mail.default_sendlater_uri", "mailbox://nobody@Local%20Folders/Unsent%20Messages");
  337. pref("mail.smtpservers", "");
  338. pref("mail.accountmanager.accounts", "");
  339. pref("mail.server.default.port", -1);
  340. pref("mail.server.default.offline_support_level", -1);
  341. pref("mail.server.default.leave_on_server", false);
  342. pref("mail.server.default.download_on_biff", false);
  343. pref("mail.server.default.check_time", 10);
  344. pref("mail.server.default.delete_by_age_from_server", false);
  345. pref("mail.server.default.num_days_to_leave_on_server", 7);
  346. pref("mail.server.default.dot_fix", true);
  347. pref("mail.server.default.limit_offline_message_size", false);
  348. pref("mail.server.default.max_size", 50);
  349. pref("mail.server.default.delete_mail_left_on_server", false);
  350. pref("mail.server.default.valid", true);
  351. pref("mail.server.default.abbreviate", true);
  352. pref("mail.server.default.isSecure", false);
  353. pref("mail.server.default.authMethod", 3); // cleartext password. @see nsIMsgIncomingServer.authMethod.
  354. pref("mail.server.default.socketType", 0); // @see nsIMsgIncomingServer.socketType
  355. pref("mail.server.default.override_namespaces", true);
  356. pref("mail.server.default.deferred_to_account", "");
  357. pref("mail.server.default.delete_model", 1);
  358. pref("mail.server.default.fetch_by_chunks", true);
  359. pref("mail.server.default.mime_parts_on_demand", true);
  360. // Send IMAP RFC 2971 ID Info to server
  361. pref("mail.server.default.send_client_info", true);
  362. pref("mail.server.default.always_authenticate", false);
  363. pref("mail.server.default.singleSignon", true);
  364. pref("mail.server.default.max_articles", 500);
  365. pref("mail.server.default.notify.on", true);
  366. pref("mail.server.default.mark_old_read", false);
  367. pref("mail.server.default.empty_trash_on_exit", false);
  368. // 0 = Keep Dupes, leave them alone
  369. // 1 = delete dupes
  370. // 2 = Move Dupes to trash
  371. // 3 = Mark Dupes as Read
  372. pref("mail.server.default.dup_action", 0);
  373. pref("mail.server.default.hidden", false);
  374. pref("mail.server.default.using_subscription", true);
  375. pref("mail.server.default.dual_use_folders", true);
  376. pref("mail.server.default.canDelete", false);
  377. pref("mail.server.default.login_at_startup", false);
  378. pref("mail.server.default.allows_specialfolders_usage", true);
  379. pref("mail.server.default.canCreateFolders", true);
  380. pref("mail.server.default.canFileMessages", true);
  381. // special enhancements for IMAP servers
  382. pref("mail.server.default.is_gmail", false);
  383. pref("mail.server.default.use_idle", true);
  384. // in case client or server has bugs in condstore implementation
  385. pref("mail.server.default.use_condstore", true);
  386. // in case client or server has bugs in compress implementation
  387. pref("mail.server.default.use_compress_deflate", true);
  388. // for spam
  389. pref("mail.server.default.spamLevel", 100); // 0 off, 100 on. not doing bool since we might have real levels one day.
  390. pref("mail.server.default.moveOnSpam", false);
  391. pref("mail.server.default.moveTargetMode", 0); // 0 == "Junk" on server, 1 == specific folder
  392. pref("mail.server.default.spamActionTargetAccount", "");
  393. pref("mail.server.default.spamActionTargetFolder", "");
  394. pref("mail.server.default.useWhiteList", true);
  395. pref("mail.server.default.whiteListAbURI", "moz-abmdbdirectory://abook.mab"); // the Personal addressbook.
  396. pref("mail.server.default.useServerFilter", false);
  397. pref("mail.server.default.serverFilterName", "SpamAssassin");
  398. pref("mail.server.default.serverFilterTrustFlags", 1); // 1 == trust positives, 2 == trust negatives, 3 == trust both
  399. pref("mail.server.default.purgeSpam", false);
  400. pref("mail.server.default.purgeSpamInterval", 14); // 14 days
  401. pref("mail.server.default.check_all_folders_for_new", false);
  402. // should we inhibit whitelisting of the email addresses for a server's identities?
  403. pref("mail.server.default.inhibitWhiteListingIdentityUser", true);
  404. // should we inhibit whitelisting of the domain for a server's identities?
  405. pref("mail.server.default.inhibitWhiteListingIdentityDomain", false);
  406. // to activate auto-sync feature (preemptive message download for imap) by default
  407. pref("mail.server.default.autosync_offline_stores",true);
  408. pref("mail.server.default.offline_download",true);
  409. // -1 means no limit, no purging of offline stores.
  410. pref("mail.server.default.autosync_max_age_days", -1);
  411. // This is the default store contractID for newly created servers.
  412. // We don't use mail.server.default because we want to ensure that the
  413. // store contract id is always written out to prefs.js
  414. pref("mail.serverDefaultStoreContractID", "@mozilla.org/msgstore/berkeleystore;1");
  415. // the probablilty threshold over which messages are classified as junk
  416. // this number is divided by 100 before it is used. The classifier can be fine tuned
  417. // by changing this pref. Typical values are .99, .95, .90, .5, etc.
  418. pref("mail.adaptivefilters.junk_threshold", 90);
  419. pref("mail.spam.version", 0); // used to determine when to migrate global spam settings
  420. pref("mail.spam.logging.enabled", false);
  421. pref("mail.spam.manualMark", false);
  422. pref("mail.spam.markAsReadOnSpam", false);
  423. pref("mail.spam.manualMarkMode", 0); // 0 == "move to junk folder", 1 == "delete"
  424. pref("mail.spam.markAsNotJunkMarksUnRead", true);
  425. pref("mail.spam.display.sanitize", true); // display simple html for html junk messages
  426. // the number of allowed bayes tokens before the database is shrunk
  427. pref("mailnews.bayesian_spam_filter.junk_maxtokens", 100000);
  428. // set default traits for junk and good. Index should match the values in nsIJunkMailPlugin
  429. pref("mailnews.traits.id.1", "mailnews@mozilla.org#good");
  430. pref("mailnews.traits.name.1", "Good");
  431. pref("mailnews.traits.enabled.1", false);
  432. pref("mailnews.traits.id.2", "mailnews@mozilla.org#junk");
  433. pref("mailnews.traits.name.2", "Junk");
  434. pref("mailnews.traits.enabled.2", true);
  435. pref("mailnews.traits.antiId.2", "mailnews@mozilla.org#good");
  436. // traits 3 - 1000 are reserved for use by mailnews@mozilla.org
  437. // the first externally defined trait will have index 1001
  438. pref("mailnews.traits.lastIndex", 1000);
  439. pref("mail.autoComplete.highlightNonMatches", true);
  440. // if true, we'll use the password from an incoming server with
  441. // matching username and domain
  442. pref("mail.smtp.useMatchingDomainServer", false);
  443. // if true, we'll use the password from an incoming server with
  444. // matching username and host name
  445. pref("mail.smtp.useMatchingHostNameServer", false);
  446. pref("mail.smtpserver.default.authMethod", 3); // cleartext password. @see nsIMsgIncomingServer.authMethod.
  447. pref("mail.smtpserver.default.try_ssl", 0); // @see nsISmtpServer.socketType
  448. // For the next 3 prefs, see <http://www.bucksch.org/1/projects/mozilla/16507>
  449. pref("mail.display_glyph", true); // TXT->HTML :-) etc. in viewer
  450. pref("mail.display_struct", true); // TXT->HTML *bold* etc. in viewer; ditto
  451. pref("mail.send_struct", false); // HTML->HTML *bold* etc. during Send; ditto
  452. // display time and date in message pane using senders timezone
  453. pref("mailnews.display.date_senders_timezone", false);
  454. // For the next 4 prefs, see <http://www.bucksch.org/1/projects/mozilla/108153>
  455. pref("mailnews.display.prefer_plaintext", false); // Ignore HTML parts in multipart/alternative
  456. pref("mailnews.display.html_as", 0); // How to display HTML/MIME parts. 0 = Render the sender's HTML; 1 = HTML->TXT->HTML; 2 = Show HTML source; 3 = Sanitize HTML; 4 = Show all body parts
  457. pref("mailnews.display.show_all_body_parts_menu", false); // Whether the View > Message body as > All body parts menu item is available
  458. pref("mailnews.display.html_sanitizer.allowed_tags.migrated", false); // whether legacy mailnews.display.html_sanitizer.allowed_tags pref has been migrated to values of the two prefs below
  459. pref("mailnews.display.html_sanitizer.drop_non_css_presentation", true); // whether to drop <font>, <center>, align='...', etc.
  460. pref("mailnews.display.html_sanitizer.drop_media", false); // whether to drop <img>, <video> and <audio>
  461. pref("mailnews.display.disallow_mime_handlers", 0); /* Let only a few classes process incoming data. This protects from bugs (e.g. buffer overflows) and from security loopholes (e.g. allowing unchecked HTML in some obscure classes, although the user has html_as > 0).
  462. This option is mainly for the UI of html_as.
  463. 0 = allow all available classes
  464. 1 = Use hardcoded blacklist to avoid rendering (incoming) HTML
  465. 2 = ... and inline images
  466. 3 = ... and some other uncommon content types
  467. 100 = Use hardcoded whitelist to avoid even more bugs(buffer overflows).
  468. This mode will limit the features available (e.g. uncommon
  469. attachment types and inline images) and is for paranoid users.
  470. */
  471. // RSS rendering options, see prior 4 prefs above.
  472. pref("rss.display.prefer_plaintext", false);
  473. pref("rss.display.html_as", 0);
  474. pref("rss.display.disallow_mime_handlers", 0);
  475. // RSS message body preferences
  476. //0 - global no, load web page
  477. //1 - global yes, load summary
  478. //2 - use individual folder setting; if no setting default to 1
  479. pref("rss.show.summary", 1);
  480. // Action on double click or enter in threadpane for message with
  481. // header 'content-base' url (rss)
  482. // 0 - open content-base url in new window
  483. // 1 - open summary in new window
  484. // 2 - toggle load summary and content-base url in message pane
  485. pref("rss.show.content-base", 0);
  486. pref("mail.forward_message_mode", 0); // 0=default as attachment 2=forward as inline with attachments, (obsolete 4.x value)1=forward as quoted (mapped to 2 in mozilla)
  487. pref("mail.forward_add_extension", true); // add .eml extension when forwarding as attachment
  488. // Prefix of for mail forwards. E.g. "Fwd" -> subject will be Fwd: <subject>
  489. pref("mail.forward_subject_prefix", "Fwd");
  490. pref("mail.startup.enabledMailCheckOnce", false);
  491. pref("mailnews.send_plaintext_flowed", true); // RFC 2646=======
  492. pref("mailnews.display.disable_format_flowed_support", false);
  493. pref("mailnews.nav_crosses_folders", 1); // prompt user when crossing folders
  494. // these two news.cancel.* prefs are for use by QA for automated testing. see bug #31057
  495. pref("news.cancel.confirm", true);
  496. pref("news.cancel.alert_on_success", true);
  497. pref("mail.SpellCheckBeforeSend", false);
  498. pref("mail.spellcheck.inline", true);
  499. pref("mail.phishing.detection.enabled", true); // enable / disable phishing detection for link clicks
  500. pref("mail.warn_on_send_accel_key", true);
  501. pref("mail.enable_autocomplete", true);
  502. pref("mailnews.html_domains", "");
  503. pref("mailnews.plaintext_domains", "");
  504. pref("mailnews.global_html_domains.version", 1);
  505. /////////////////////////////////////////////////////////////////
  506. // Privacy Controls for Handling Remote Content
  507. /////////////////////////////////////////////////////////////////
  508. // Specific plugins pref just for message content. RSS is not covered by this.
  509. pref("mailnews.message_display.allow_plugins", false);
  510. pref("mailnews.message_display.disable_remote_image", true);
  511. /////////////////////////////////////////////////////////////////
  512. // Trusted Mail Domains
  513. //
  514. // Specific domains can be white listed to bypass various privacy controls in Thunderbird
  515. // such as blocking remote images, the phishing detector, etc. This is particularly
  516. // useful for business deployments where images or links reference servers inside a
  517. // corporate intranet. For multiple domains, separate them with a comma. i.e.
  518. // pref("mail.trusteddomains", "mozilla.org,mozillafoundation.org");
  519. /////////////////////////////////////////////////////////////////
  520. pref("mail.trusteddomains", "");
  521. pref("mail.imap.use_status_for_biff", true);
  522. pref("mail.quota.mainwindow_threshold.show", 75); // in percent. when the quota meter starts showing up at all. decrease this for it to be more than a warning.
  523. pref("mail.quota.mainwindow_threshold.warning", 80); // when it gets yellow
  524. pref("mail.quota.mainwindow_threshold.critical", 95); // when it gets red
  525. // Pref controlling confirmation of folder deletion on empty trash
  526. pref("mail.imap.confirm_emptyTrashFolderDeletion", false);
  527. // Pref controlling the updates on the pre-configured accounts.
  528. // In order to add new pre-configured accounts (after a version),
  529. // increase the following version number besides updating the
  530. // pref mail.accountmanager.appendaccounts
  531. pref("mailnews.append_preconfig_accounts.version", 1);
  532. // Pref controlling the updates on the pre-configured smtp servers.
  533. // In order to add new pre-configured smtp servers (after a version),
  534. // increase the following version number besides updating the
  535. // pref mail.smtpservers.appendsmtpservers
  536. pref("mail.append_preconfig_smtpservers.version", 1);
  537. pref("mail.biff.play_sound", true);
  538. // 0 == default system sound, 1 == user specified wav
  539. pref("mail.biff.play_sound.type", 0);
  540. // _moz_mailbeep is a magic key, for the default sound.
  541. // otherwise, this needs to be a file url
  542. pref("mail.biff.play_sound.url", "");
  543. pref("mail.biff.show_alert", true);
  544. pref("mail.biff.show_tray_icon", true); // currently Windows-only
  545. pref("mail.biff.show_balloon", false); // currently Windows-only
  546. pref("mail.biff.animate_dock_icon", false);
  547. // add jitter to biff interval
  548. pref("mail.biff.add_interval_jitter", true);
  549. #ifdef MOZ_SUITE
  550. // if true, check for new mail even when opening non-mail windows
  551. pref("mail.biff.on_new_window", true);
  552. #endif
  553. // If true, the number used in the Mac OS X dock notification will be the
  554. // the number of "new" messages, as per the classic Thunderbird definition.
  555. // Defaults to false, which notifies about the number of unread messages.
  556. pref("mail.biff.use_new_count_in_mac_dock", false);
  557. // Content disposition for attachments (except binary files and vcards).
  558. // 0= Content-Disposition: inline
  559. // 1= Content-Disposition: attachment
  560. pref("mail.content_disposition_type", 1);
  561. // Experimental option to send message in the background - don't wait to close window.
  562. pref("mailnews.sendInBackground", false);
  563. // Will show a progress dialog when saving or sending a message
  564. pref("mailnews.show_send_progress", true);
  565. pref("mail.server.default.retainBy", 1);
  566. pref("mailnews.ui.junk.firstuse", true);
  567. pref("mailnews.ui.junk.manualMarkAsJunkMarksRead", true);
  568. // for manual upgrades of certain UI features.
  569. // 1 -> 2 is for the folder pane tree landing, to hide the
  570. // unread and total columns, see msgMail3PaneWindow.js
  571. pref("mail.ui.folderpane.version", 1);
  572. // for manual upgrades of certain UI features.
  573. #ifdef MOZ_SUITE
  574. pref("mailnews.ui.threadpane.version", 5);
  575. #else
  576. // Thunderbird uses this pref in msgMail3PaneWindow.js for bad reasons.
  577. pref("mailnews.ui.threadpane.version", 7);
  578. #endif
  579. // for manual upgrades of certain UI features.
  580. // 1 -> 2 is for the ab results pane tree landing
  581. // to hide the non default columns in the addressbook dialog
  582. // see abCommon.js and addressbook.js
  583. pref("mailnews.ui.addressbook_results.version", 1);
  584. // for manual upgrades of certain UI features.
  585. // 1 -> 2 is for the ab results pane tree landing
  586. // to hide the non default columns in the addressbook sidebar panel
  587. // see abCommon.js and addressbook-panel.js
  588. pref("mailnews.ui.addressbook_panel_results.version", 1);
  589. // for manual upgrades of certain UI features.
  590. // 1 -> 2 is for the ab results pane tree landing
  591. // to hide the non default columns in the select addresses dialog
  592. // see abCommon.js and abSelectAddressesDialog.js
  593. pref("mailnews.ui.select_addresses_results.version", 1);
  594. // for manual upgrades of certain UI features.
  595. // 1 -> 2 is for the ab results pane
  596. // to hide the non default columns in the advanced directory search dialog
  597. // see abCommon.js and ABSearchDialog.js
  598. pref("mailnews.ui.advanced_directory_search_results.version", 1);
  599. //If set to a number greater than 0, msg compose windows will be recycled in order to open them quickly
  600. pref("mail.compose.max_recycled_windows", 1);
  601. // default description and color prefs for tags
  602. // (we keep the .labels. names for backwards compatibility)
  603. pref("mailnews.labels.description.1", "chrome://messenger/locale/messenger.properties");
  604. pref("mailnews.labels.description.2", "chrome://messenger/locale/messenger.properties");
  605. pref("mailnews.labels.description.3", "chrome://messenger/locale/messenger.properties");
  606. pref("mailnews.labels.description.4", "chrome://messenger/locale/messenger.properties");
  607. pref("mailnews.labels.description.5", "chrome://messenger/locale/messenger.properties");
  608. pref("mailnews.labels.color.1", "#FF0000"); // default: red
  609. pref("mailnews.labels.color.2", "#FF9900"); // default: orange
  610. pref("mailnews.labels.color.3", "#009900"); // default: green
  611. pref("mailnews.labels.color.4", "#3333FF"); // default: blue
  612. pref("mailnews.labels.color.5", "#993399"); // default: purple
  613. //default null headers
  614. //example "X-Warn: XReply", list of hdrs separated by ": "
  615. pref("mailnews.customHeaders", "");
  616. // default msg compose font prefs
  617. pref("msgcompose.font_face", "");
  618. pref("msgcompose.font_size", "medium");
  619. pref("msgcompose.text_color", "#000000");
  620. pref("msgcompose.background_color", "#FFFFFF");
  621. // When there is no disclosed recipients (only bcc), we should address the message to empty group
  622. // to prevent some mail server to disclose the bcc recipients
  623. pref("mail.compose.add_undisclosed_recipients", true);
  624. // Set this preference to true to tell mail not to attach the source of a link to a local
  625. // network file (file://///<network name>/<path>/<file name>). Windows only
  626. pref("mail.compose.dont_attach_source_of_local_network_links", false);
  627. pref("mail.compose.dontWarnMail2Newsgroup", false);
  628. // these prefs (in minutes) are here to help QA test this feature
  629. // "mail.purge.min_delay", never purge a junk folder more than once every 480 minutes (60 mins/hour * 8 hours)
  630. // "mail.purge.timer_interval", fire the purge timer every 5 minutes, starting 5 minutes after we load accounts
  631. pref("mail.purge.min_delay", 480);
  632. pref("mail.purge.timer_interval", 5);
  633. // Set to false if opening a message in the standalone message window or viewing
  634. // it in the message pane should never mark it as read.
  635. pref("mailnews.mark_message_read.auto", true);
  636. // Set to true if viewing a message should mark it as read after the msg is
  637. // viewed in the message pane for a specified time interval in seconds.
  638. pref("mailnews.mark_message_read.delay", false);
  639. pref("mailnews.mark_message_read.delay.interval", 5); // measured in seconds
  640. // delay after which messages are showed when moving through them with cursors
  641. // during thread pane navigation
  642. pref("mailnews.threadpane_select_delay", 250); // measured in milliseconds
  643. // require a password before showing imap or local headers in thread pane
  644. pref("mail.password_protect_local_cache", false);
  645. // import option to skip the first record, recorded so that we can save
  646. // the users last used preference.
  647. pref("mailnews.import.text.skipfirstrecord", true);
  648. // automatically scale attached images that are displayed inline
  649. pref("mail.enable_automatic_image_resizing", true);
  650. #ifdef MOZ_SUITE
  651. #ifdef XP_WIN
  652. pref("ldap_2.servers.oe.uri", "moz-aboutlookdirectory://oe/");
  653. pref("ldap_2.servers.oe.description", "chrome://messenger/locale/addressbook/addressBook.properties");
  654. pref("ldap_2.servers.oe.dirType", 3);
  655. #endif
  656. #endif
  657. #ifdef XP_MACOSX
  658. pref("ldap_2.servers.osx.uri", "moz-abosxdirectory:///");
  659. pref("ldap_2.servers.osx.description", "chrome://messenger/locale/addressbook/addressBook.properties");
  660. pref("ldap_2.servers.osx.dirType", 3);
  661. pref("mail.notification.sound", "");
  662. pref("mail.notification.count.inbox_only", true);
  663. #endif
  664. // gtk2 (*nix) lacks transparent/translucent drag support (bug 376238), so we
  665. // want to disable it so people can see where they are dragging things.
  666. // (Stock gtk drag icons will be used instead.)
  667. #ifdef MOZ_WIDGET_GTK2
  668. pref("nglayout.enable_drag_images", false);
  669. #endif
  670. #ifdef XP_OS2
  671. pref("mail.compose.max_recycled_windows", 0);
  672. #endif
  673. // For the Empty Junk/Trash confirmation dialogs.
  674. pref("mailnews.emptyJunk.dontAskAgain", false);
  675. pref("mailnews.emptyTrash.dontAskAgain", false);
  676. // where to fetch auto config information from.
  677. pref("mailnews.auto_config_url", "https://live.mozillamessaging.com/autoconfig/v1.1/");
  678. // Added in bug 551519. Remove when bug 545866 is fixed.
  679. pref("mailnews.mx_service_url", "https://live.mozillamessaging.com/dns/mx/");
  680. // -- Summary Database options
  681. // dontPreserveOnCopy: a space separated list of properties that are not
  682. // copied to the new nsIMsgHdr when a message is copied.
  683. // Allows extensions to control preservation of properties.
  684. pref("mailnews.database.summary.dontPreserveOnCopy",
  685. "account msgOffset threadParent msgThreadId statusOfset flags size numLines ProtoThreadFlags label gloda-id gloda-dirty storeToken");
  686. // dontPreserveOnMove: a space separated list of properties that are not
  687. // copied to the new nsIMsgHdr when a message is moved.
  688. // Allows extensions to control preservation of properties.
  689. pref("mailnews.database.summary.dontPreserveOnMove",
  690. "account msgOffset threadParent msgThreadId statusOfset flags size numLines ProtoThreadFlags label storeToken");
  691. // -- Global Database (gloda) options
  692. // Should the indexer be enabled?
  693. pref("mailnews.database.global.indexer.enabled", false);
  694. // Should we output warnings and errors to the "error console"?
  695. pref("mailnews.database.global.logging.console", false);
  696. // Should we output all output levels to stdout via dump?
  697. pref("mailnews.database.global.logging.dump", false);
  698. // Should we consider outputting all levels via the network?
  699. pref("mailnews.database.global.logging.net", false);
  700. // Rate of growth of the gloda cache, whose maximum value is 8 MiB and max is 64 MiB.
  701. // See more: https://developer.mozilla.org/en/Thunderbird/gloda#Cache_Size"
  702. pref("mailnews.database.global.datastore.cache_to_memory_permillage", 10);
  703. // default field order in the fieldmap
  704. pref("mailnews.import.text.fieldmap", "+0,+1,+2,+3,+4,+5,+36,+6,+7,+8,+9,+10,+11,+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28,+29,+30,+31,+32,+33,+34,+35");
  705. // On networks deploying QoS, it is recommended that these be lockpref()'d,
  706. // since inappropriate marking can easily overwhelm bandwidth reservations
  707. // for certain services (i.e. EF for VoIP, AF4x for interactive video,
  708. // AF3x for broadcast/streaming video, etc)
  709. // default value for SMTP and POP3.
  710. // in a DSCP environment this should be 48 (0x30, or AF12) per RFC-4594,
  711. // Section 4.8 "High-Throughput Data Service Class"
  712. pref("mail.pop3.qos", 0);
  713. pref("mail.smtp.qos", 0);
  714. pref("mail.nntp.qos", 0);
  715. // default value for IMAP4
  716. // in a DSCP environment this should be 56 (0x38, or AF13), ibid.
  717. pref("mail.imap.qos", 0);