From b97ca5b1ead921dca368917b744540e630ef1436 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Sat, 3 Apr 2004 17:31:57 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@154489 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/search/src/nsMsgFilterList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/mailnews/base/search/src/nsMsgFilterList.cpp b/mozilla/mailnews/base/search/src/nsMsgFilterList.cpp index 9f08d5ed856..f937b75b2e9 100644 --- a/mozilla/mailnews/base/search/src/nsMsgFilterList.cpp +++ b/mozilla/mailnews/base/search/src/nsMsgFilterList.cpp @@ -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: