Update of /cvsroot/mahogany/M/src/modules
In directory usw-pr-cvs1:/tmp/cvs-serv6947/src/modules
Modified Files:
Filters.cpp
Log Message:
extracted the pam test strings in their own header to avoid duplicating them in 2
different files; also partly fixed the initial value of the spam properties dialog
checkboxes
Index: Filters.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/Filters.cpp,v
retrieving revision 1.118
retrieving revision 1.119
diff -b -u -2 -r1.118 -r1.119
--- Filters.cpp 27 Jun 2002 11:17:18 -0000 1.118
+++ Filters.cpp 27 Jun 2002 13:37:46 -0000 1.119
@@ -49,4 +49,5 @@
#include "modules/Filters.h"
+#include "MFilterLang.h"
#include <wx/regex.h> // wxRegEx::Flags
@@ -1937,5 +1938,5 @@
{
const wxString& test = tests[n];
- if ( test == "subj8bit" )
+ if ( test == SPAM_TEST_SUBJ8BIT )
{
// consider that the message is a spam if its subject contains more
@@ -1964,5 +1965,5 @@
}
}
- else if ( test == "korean" )
+ else if ( test == SPAM_TEST_KOREAN )
{
// detect all Korean charsets -- and do it for all MIME parts, not
@@ -1970,5 +1971,5 @@
rc = CheckMimePartForKoreanCSet(msg->GetTopMimePart());
}
- else if ( test == "xauthwarn" )
+ else if ( test == SPAM_TEST_XAUTHWARN )
{
// unfortunately not only spams have this header but we consider that
@@ -1977,5 +1978,5 @@
CheckXAuthWarning(value);
}
- else if ( test == "html" )
+ else if ( test == SPAM_TEST_HTML )
{
// we accept the multipart/alternative messages with a text/plain and
@@ -1985,5 +1986,5 @@
}
#ifdef USE_RBL
- else if ( test == "rbl" )
+ else if ( test == SPAM_TEST_RBL )
{
msg->GetHeaderLine("Received", value);
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates