Bug 556786 - Filter junk status "Not Junk" won't save, r/sr=standard8
authorKent James <kent@caspia.com>
Fri, 09 Apr 2010 06:30:18 -0700
changeset 5420 ea7e7431ebfd77ef0f46ff1bae89f3bfcc54c30a
parent 5419 28597c753c92b60a73769cc31793020302c76274
child 5421 6e8b9c193f538b47a24c6e78aedb10dd993048c4
push idunknown
push userunknown
push dateunknown
bugs556786
Bug 556786 - Filter junk status "Not Junk" won't save, r/sr=standard8
mailnews/base/search/src/nsMsgFilterList.cpp
--- a/mailnews/base/search/src/nsMsgFilterList.cpp
+++ b/mailnews/base/search/src/nsMsgFilterList.cpp
@@ -687,17 +687,17 @@ nsresult nsMsgFilterList::LoadTextFilter
             currentFilterAction->SetType(nsMsgFilterAction::AddTag);
             currentFilterAction->SetStrValue(keyword);
           }
         }
         else if (type == nsMsgFilterAction::JunkScore)
         {
           nsresult res;
           PRInt32 junkScore = value.ToInteger(&res, 10);
-          if (NS_FAILED(res))
+          if (NS_SUCCEEDED(res))
             currentFilterAction->SetJunkScore(junkScore);
         }
         else if (type == nsMsgFilterAction::Forward ||
                  type == nsMsgFilterAction::Reply ||
                  type == nsMsgFilterAction::AddTag ||
                  type == nsMsgFilterAction::Custom)
         {
           currentFilterAction->SetStrValue(value);