Closed Bug 71243 Opened 25 years ago Closed 25 years ago

all default values for auth_method and try_ssl to be

Categories

(MailNews Core :: Backend, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: cavin)

References

Details

Attachments

(2 files)

currently, they are hard coded in nsSmtpServer.cpp we should be respecting the values in mailnews.js, to allow ISPs and IS departments to configure the defaults (if necessary.)
Summary: all default values for auth_method and try_ssl to be → all default values for auth_method and try_ssl to be
adding cavin to the cc list.
re-assigning to cavin. thanks cavin!
Assignee: sspitzer → cavin
Attached patch patch attachSplinter Review
comments: 1) getDefaultIntPref() should not have a PRBool out parameter. it should be and int. (getDefaultIntPref, not getDefaultBoolPref, right?) 2) don't do "nsCOMPtr<nsIPref> &prefs", just do "nsIPref *pref" so instead of: nsresult getDefaultIntPref(nsCOMPtr<nsIPref> &prefs, const char *prefName, PRBool *val); you should have: nsresult getDefaultIntPref(nsIPrefs *prefs, const char *prefName, PRInt32 *val); 3) + if (NS_FAILED(rv)) + { // last resort + *val = PR_TRUE; + rv = NS_OK; + } + return rv; since this is an int pref, and not a bool pref, you can't set the last resort value to be PR_TRUE. I'd put the last resort (hard coded) logic in the callers. if you have questions, we can talk about it tomorrow.
whoops, I meant: nsresult getDefaultIntPref(const nsIPrefs *prefs, const char *prefName, PRInt32 *val);
Attached patch 2nd Patch fileSplinter Review
r/sr=sspitzer, looks good. since you don't have CVS access yet, I'll land this patch for you.
fixed. nice work cavin.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: esther → stephend
For nsSmtpServer.cpp: 1.27 sspitzer%netscape.com Mar 29 21:22 fix for #71243. don't hard code the default values, get them from the default prefs. fix by cavin@netscape.com. sr=spitzer and for nsSmtpServer.h: 1.7 sspitzer%netscape.com Mar 29 21:22 fix for #71243. don't hard code the default values, get them from the default prefs. fix by cavin@netscape.com. sr=spitzer I'm verifying that the code defaults to using the prefs (via a return value passing parameters, instead of being hard-coded/assigned) in the case of a 'failure'.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: