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)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sspitzer, Assigned: cavin)
References
Details
Attachments
(2 files)
|
1.88 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.94 KB,
patch
|
Details | Diff | Splinter Review |
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.)
Updated•25 years ago
|
Summary: all default values for auth_method and try_ssl to be → all default values for auth_method and try_ssl to be
| Assignee | ||
Comment 1•25 years ago
|
||
adding cavin to the cc list.
| Assignee | ||
Comment 3•25 years ago
|
||
| Reporter | ||
Comment 4•25 years ago
|
||
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.
| Reporter | ||
Comment 5•25 years ago
|
||
whoops, I meant:
nsresult getDefaultIntPref(const nsIPrefs *prefs, const char *prefName, PRInt32
*val);
| Assignee | ||
Comment 6•25 years ago
|
||
| Reporter | ||
Comment 7•25 years ago
|
||
r/sr=sspitzer, looks good.
since you don't have CVS access yet, I'll land this patch for you.
| Reporter | ||
Comment 8•25 years ago
|
||
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
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•