enable SMTP auth by default: bug 64777 r=racham sr=sspitzer

This commit is contained in:
jgmyers%netscape.com 2001-03-08 22:00:33 +00:00
parent 1f859d742c
commit 6e4be49bc3
3 changed files with 4 additions and 3 deletions

View File

@ -53,6 +53,7 @@ function initSmtpSettings(server) {
elements = gSmtpTrySSL.getElementsByAttribute("data", "1");
gSmtpTrySSL.selectedItem = elements[0];
} else {
gSmtpAuthMethod.setAttribute("value", "1");
gSmtpTrySSL.selectedItem =
gSmtpTrySSL.getElementsByAttribute("data", "1")[0];
}

View File

@ -2,7 +2,7 @@
<!ENTITY alwaysUseUsername.label "Use name and password">
<!ENTITY userName.label "User Name:">
<!ENTITY savePassword.label "Save my password">
<!ENTITY isSecure.label "Use secure connection (SSL)">
<!ENTITY isSecure.label "Use secure connection (SSL):">
<!ENTITY neverSecure.label "Never">
<!ENTITY alwaysSecure.label "Always">
<!ENTITY sometimesSecure.label "When available">

View File

@ -125,10 +125,10 @@ nsSmtpServer::GetAuthMethod(PRInt32 *authMethod)
NS_ENSURE_ARG_POINTER(authMethod);
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);
if (NS_FAILED(rv)) return rv;
*authMethod = 0;
*authMethod = 1;
getPrefString("auth_method", pref);
rv = prefs->GetIntPref(pref, authMethod);
if (NS_FAILED(rv)) *authMethod = 0;
if (NS_FAILED(rv)) *authMethod = 1;
return NS_OK;
}