Bug #282985 --> add options UI for turning off the phishing detector.

This commit is contained in:
scott%scott-macgregor.org 2005-02-22 06:47:10 +00:00
Родитель 8e944a97e8
Коммит 32b1765267
3 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -53,7 +53,7 @@ const kPhishingWithMismatchedHosts = 2;
function isMsgEmailScam(aUrl)
{
var isEmailScam = false;
if (!aUrl)
if (!aUrl || !gPrefBranch.getBoolPref("mail.phishing.detection.enabled"))
return isEmailScam;
// Ignore nntp and RSS messages

Просмотреть файл

@ -59,6 +59,7 @@
var _elementIDs = [ // privacy settings
"javascriptAllowMailNews", "networkImageDisableImagesInMailNews", "useWhiteList", "whiteListAbURI",
"enablePhishingDetector",
// return receipts
"alwaysRequest", "receiptFolder", "receiptSend", "notInToCcPref", "outsideDomainPref", "otherCasesPref",
@ -109,8 +110,11 @@
</menupopup>
</menulist>
</hbox>
<checkbox id="enablePhishingDetector"
label="&enablePhishingDetector.label;" accesskey="&enablePhishingDetector.accesskey;"
prefstring="mail.phishing.detection.enabled"/>
<checkbox id="javascriptAllowMailNews"
label="&enbJsCheckMailNews.label;" accesskey="&enbJsCheckMailNews.accesskey;"
prefstring="javascript.allow.mailnews"/>

Просмотреть файл

@ -6,6 +6,8 @@
<!ENTITY disableImageInMailNews.accesskey "B">
<!ENTITY allowRemoteImagesForFriends.label "Allow remote images if the sender is in my:">
<!ENTITY allowRemoteImagesForFriends.accesskey "A">
<!ENTITY enablePhishingDetector.label "Check mail messages for email scams">
<!ENTITY enablePhishingDetector.accesskey "l">
<!ENTITY enbJsCheckMailNews.label "Enable JavaScript in mail messages.">
<!ENTITY enbJsCheckMailNews.accesskey "J">