Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15516/include

Modified Files:
        SpamFilter.h 
Log Message:
replaced array argument to CheckIfSpam() with a string one, changed its semantics

Index: SpamFilter.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/SpamFilter.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -u -2 -r1.5 -r1.6
--- SpamFilter.h        11 Jul 2004 19:04:34 -0000      1.5
+++ SpamFilter.h        11 Jul 2004 22:52:21 -0000      1.6
@@ -94,16 +94,22 @@
       Check if the message is a spam.
 
+      If param argument is empty, all filters are used with default options.
+      Otherwise only the filters whose names appear in "param" are used so if
+      you want the dspam filter to be used you must have "dspam=" in the param
+      string, i.e. it must be present even though it currently has no options.
+
       @param msg the message to check
-      @param params array containing the stringified options for the filters
-                    (each element is of the form "name=options" where "name" is
-                    the name of the filter and options depend on filter)
+      @param param either empty or contains the stringified options for the
+                   filters of the form "name1=options1;...;nameN=optionsN"
+                   where "name"s are the same as GetName() return values and
+                   "options" may be empty
       @param result place holder for the message explaining why the message was
                     deemed to be spam, if the filter can tell it, ignored if
-                    the return value is false
+                    the return value is false (may be NULL)
       @return true if the message is deemed to be a spam, false otherwise
     */
    static bool CheckIfSpam(const Message& msg,
-                           const wxArrayString& params,
-                           String *result);
+                           const String& param = _T(""),
+                           String *result = NULL);
 
    /**



-------------------------------------------------------
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