make sure to store the mServersLoaded=PR_TRUE even if there is some wierd pref failure
a=phil
r=mscott
This commit is contained in:
alecf%netscape.com 2000-03-02 23:41:34 +00:00
parent c6c60bb6bc
commit ee6b36799d

View File

@ -461,16 +461,18 @@ nsSmtpService::loadSmtpServers()
nsXPIDLCString serverList;
rv = prefs->CopyCharPref("mail.smtpservers", getter_Copies(serverList));
if (NS_FAILED(rv)) return rv;
if (NS_FAILED(rv)) {
char *newStr;
char *pref = nsCRT::strtok(NS_CONST_CAST(char*,(const char*)serverList),
", ", &newStr);
while (pref) {
char *newStr;
char *pref = nsCRT::strtok(NS_CONST_CAST(char*,(const char*)serverList),
", ", &newStr);
while (pref) {
rv = createKeyedServer(pref);
pref = nsCRT::strtok(newStr, ", ", &newStr);
}
rv = createKeyedServer(pref);
pref = nsCRT::strtok(newStr, ", ", &newStr);
}
saveKeyList();