Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25163/src/modules

Modified Files:
        Filters.cpp 
Log Message:
1. renamed dspam.cpp to DspamFilter.cpp
2. moved built in heuristic headers-based spam filter to HeadersFilter
3. added SpamFilter::Train() and implemented it for dspam
4. renamed SpamFilter::ReclassifyAsSpam() to Reclassify(), added
   DECLARE_SPAM_FILTER() macro and changed CheckIfSpam() to return a
   string explaining why the message was deemed to be a spam


Index: Filters.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/Filters.cpp,v
retrieving revision 1.194
retrieving revision 1.195
diff -b -u -2 -r1.194 -r1.195
--- Filters.cpp 2 Jul 2004 21:33:32 -0000       1.194
+++ Filters.cpp 10 Jul 2004 20:26:45 -0000      1.195
@@ -42,10 +42,8 @@
 #include "MFilterLang.h"
 #include "MInterface.h"
+#include "SpamFilter.h"
 
 #include "UIdArray.h"
 #include "Message.h"
-#include "adb/AdbManager.h"
-#include "adb/AdbBook.h"
-#include "adb/AdbEntry.h"
 
 #include "gui/wxMDialogs.h"             // for MProgressDialog
[...990 lines suppressed...]
-                  }
-               }
-            }
-         }
-
-         /*FIXME: if it is a hostname, maybe do a DNS lookup first? */
-
-         if ( rc )
-            gs_spamTest = _("blacklisted by RBL");
-      }
-#endif // USE_RBL
-      //else: simply ignore unknown tests, don't complain as it would be
-      //      too annoying probably
-   }
+   gs_spamTest.clear();
 
-   return !gs_spamTest.empty();
+   return SpamFilter::CheckIfSpam(*msg, params, &gs_spamTest);
 }
 



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to