Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv768/src/gui

Modified Files:
        wxFiltersDialog.cpp 
Log Message:
added a SPAM test for the suspicious "Received: " headers


Index: wxFiltersDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFiltersDialog.cpp,v
retrieving revision 1.92
retrieving revision 1.93
diff -b -u -2 -r1.92 -r1.93
--- wxFiltersDialog.cpp 4 Jul 2002 00:05:52 -0000       1.92
+++ wxFiltersDialog.cpp 8 Jul 2002 14:25:31 -0000       1.93
@@ -400,4 +400,5 @@
    bool m_checkKorean:1;
    bool m_checkXAuthWarn:1;
+   bool m_checkReceived:1;
    bool m_checkHtml:1;
 #ifdef USE_RBL
@@ -629,4 +630,7 @@
 #define MP_SPAM_X_AUTH_WARN_D  0l
 
+#define MP_SPAM_RECEIVED   "SpamReceived"
+#define MP_SPAM_RECEIVED_D  0l
+
 #define MP_SPAM_HTML  "SpamHtml"
 #define MP_SPAM_HTML_D  0l
@@ -648,4 +652,5 @@
    CONFIG_ENTRY(MP_SPAM_KOREAN_CSET),
    CONFIG_ENTRY(MP_SPAM_X_AUTH_WARN),
+   CONFIG_ENTRY(MP_SPAM_RECEIVED),
    CONFIG_ENTRY(MP_SPAM_HTML),
 #ifdef USE_RBL
@@ -670,4 +675,5 @@
    { gettext_noop("&Korean charset"), wxOptionsPage::Field_Bool, -1 },
    { gettext_noop("X-Authentication-&Warning header"), wxOptionsPage::Field_Bool, -1 
},
+   { gettext_noop("Suspicious \"&Received\" headers"), wxOptionsPage::Field_Bool, -1 
+},
    { gettext_noop("&HTML content"), wxOptionsPage::Field_Bool, -1 },
 #ifdef USE_RBL
@@ -702,4 +708,5 @@
 
    m_checkXAuthWarn = MP_SPAM_X_AUTH_WARN_D;
+   m_checkReceived = MP_SPAM_RECEIVED_D;
    m_checkHtml = MP_SPAM_HTML_D;
 
@@ -722,4 +729,5 @@
    profile->writeEntry(MP_SPAM_KOREAN_CSET, m_checkKorean);
    profile->writeEntry(MP_SPAM_X_AUTH_WARN, m_checkXAuthWarn);
+   profile->writeEntry(MP_SPAM_RECEIVED, m_checkReceived);
    profile->writeEntry(MP_SPAM_HTML, m_checkHtml);
 #ifdef USE_RBL
@@ -734,4 +742,5 @@
       m_checkKorean = profile->readEntry(MP_SPAM_KOREAN_CSET, 0l) != 0;
       m_checkXAuthWarn = profile->readEntry(MP_SPAM_X_AUTH_WARN, 0l) != 0;
+      m_checkReceived = profile->readEntry(MP_SPAM_RECEIVED, 0l) != 0;
       m_checkHtml = profile->readEntry(MP_SPAM_HTML, 0l) != 0;
 #ifdef USE_RBL
@@ -752,4 +761,5 @@
    profile->DeleteEntry(MP_SPAM_KOREAN_CSET);
    profile->DeleteEntry(MP_SPAM_X_AUTH_WARN);
+   profile->DeleteEntry(MP_SPAM_RECEIVED);
    profile->DeleteEntry(MP_SPAM_HTML);
 #ifdef USE_RBL
@@ -783,4 +793,6 @@
    if ( m_checkXAuthWarn )
       AddToSpamArgument(s, SPAM_TEST_XAUTHWARN);
+   if ( m_checkReceived )
+      AddToSpamArgument(s, SPAM_TEST_RECEIVED);
    if ( m_checkHtml )
       AddToSpamArgument(s, SPAM_TEST_HTML);



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to