Follow up fix to Bug #224318 --> add code to actually read in the junk score value when reading in a filter that

trys to set junk status on a message.

sr=bienvenu
a=chofmann
This commit is contained in:
scott%scott-macgregor.org 2004-04-03 17:31:57 +00:00
parent 9af8b02b8e
commit 2fc2206eab

View File

@ -649,6 +649,13 @@ nsresult nsMsgFilterList::LoadTextFilters(nsIOFileStream *aStream)
if (res == 0)
currentFilterAction->SetLabel((nsMsgLabelValue) labelInt);
}
else if (type == nsMsgFilterAction::JunkScore)
{
PRInt32 res;
PRInt32 junkScore = value.ToInteger(&res, 10);
if (!res)
currentFilterAction->SetJunkScore(junkScore);
}
}
break;
case nsIMsgFilterList::attribCondition: