From: yamaoka Date: Fri, 10 Jan 2003 00:34:10 +0000 (+0000) Subject: Synch with Oort Gnus. X-Git-Tag: t-gnus-6_15_12-00-quimby~15 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e9d513883ae92736fc83c1160d2f13a776c0d2af;p=elisp%2Fgnus.git- Synch with Oort Gnus. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 478014a..0ce6d06 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2003-01-09 Teodor Zlatanov + + * spam.el (spam-check-ifile): fixed call-process-region to use the + db parameter only if it's set + (spam-ifile-register-with-ifile): ditto + 2002-01-09 Kevin Greiner * gnus-agent.el (gnus-agent-catchup): Do not mark cached nor diff --git a/lisp/spam.el b/lisp/spam.el index 6e4c3de..e11115a 100644 --- a/lisp/spam.el +++ b/lisp/spam.el @@ -556,19 +556,22 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." "Get the command-line parameter for ifile's database from spam-ifile-database-path." (if spam-ifile-database-path (format "--db-file=%s" spam-ifile-database-path) - "")) + nil)) (defun spam-check-ifile () "Check the ifile backend for the classification of this message" (let ((article-buffer-name (buffer-name)) category return) (with-temp-buffer - (let ((temp-buffer-name (buffer-name))) + (let ((temp-buffer-name (buffer-name)) + (db-param (spam-get-ifile-database-parameter))) (save-excursion (set-buffer article-buffer-name) - (call-process-region (point-min) (point-max) spam-ifile-path - nil temp-buffer-name nil - "-q" "-c" (spam-get-ifile-database-parameter))) + (if db-param + (call-process-region (point-min) (point-max) spam-ifile-path + nil temp-buffer-name nil "-q" "-c" db-param) + (call-process-region (point-min) (point-max) spam-ifile-path + nil temp-buffer-name nil "-q" "-c"))) (goto-char (point-min)) (if (not (eobp)) (setq category (buffer-substring (point) (spam-point-at-eol)))) @@ -578,20 +581,24 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." ;; else, if spam-ifile-all-categories is not set... (when (string-equal spam-ifile-spam-category category) ;; always accept the ifile category - (setq return spam-split-group)))))) + (setq return spam-split-group)))))) return)) (defun spam-ifile-register-with-ifile (article-string category) "Register an article, given as a string, with a category. Uses `gnus-newsgroup-name' if category is nil (for ham registration)." (when (stringp article-string) - (let ((category (or category gnus-newsgroup-name))) + (let ((category (or category gnus-newsgroup-name)) + (db-param (spam-get-ifile-database-parameter))) (with-temp-buffer (insert-string article-string) - (call-process-region (point-min) (point-max) spam-ifile-path - nil nil nil - "-h" "-i" category - (spam-get-ifile-database-parameter)))))) + (if db-param + (call-process-region (point-min) (point-max) spam-ifile-path + nil nil nil + "-h" "-i" category db-param) + (call-process-region (point-min) (point-max) spam-ifile-path + nil nil nil + "-h" "-i" category)))))) (defun spam-ifile-register-spam-routine () (spam-generic-register-routine diff --git a/texi/ChangeLog b/texi/ChangeLog index 93655c2..00af185 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,16 @@ +2003-01-09 Teodor Zlatanov + + * gnus.texi (Filtering Spam Using spam.el, ifile spam filtering) + (spam-stat spam filtering): added new functionality and explained + old functionality better, especially where it has changed in + ham/spam/unclassified group exit processing. + +2003-01-09 Alex Schroeder + + * gnus.texi (Splitting mail using spam-stat): Fix typo. + (Creating a spam-stat dictionary, Splitting mail using spam-stat): + Fix markup in a few places. + 2003-01-08 Lars Magne Ingebrigtsen * gnus.texi (Positioning Point): %~ => ~*. diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index 57ada83..ce788e6 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -21003,17 +21003,23 @@ Spam $B%0%k!<%W$G$O!"%G%#%U%)%k%H$G$9$Y$F$N%a%C%;!<%8$,(B spam $B$G$"$k$H2rC5n$N0u$,IU$1$i$l$^$9!#$3$l(B -$B$O(B @emph{$BL$J,N`(B} $B$^$?$O(B @emph{ham} $B%0%k!<%W$KBP$7$F$O9T$J$o$l$^$;$s!#(B +$B$O(B @emph{$BL$J,N`(B} $B$^$?$O(B @emph{ham} $B%0%k!<%W$KBP$7$F$O9T$J$o$l$^$;$s!#$5(B +$B$i$K(B spam $B%0%k!<%W$K$"$k$I$N(B @strong{ham} $B5-;v$b!"(B +@code{ham-process-destination} $B%0%k!<%W%Q%i%a!<%?(B +$B$+(B @code{gnus-ham-process-destinations} $BJQ?t$N$I$A$i$+$G7h$a$i$l$F$$$k>l(B +$B=j$K0\$5$l$^$9!#>l=j$H$$$&$N$O%0%k!<%WL>$N$3$H$G$9!#(B +@code{ham-process-destination} $B%Q%i%a!<%?$,@_Dj$5$l$F$$$J$$$H!"(Bspam $B5-;v(B +$B$OC1$K4|8B@Z$l>C5n$5$l$^$9!#(B @emph{Ham} $B%0%k!<%W$rH4$1$k$H$-$K!"(Bham $B0u$,IU$$$F$$$k$9$Y$F$N5-;v(B $B$O(B ham $B%W%m%;%C%5!<$KAw$i$l!"$=$l$i$r(B spam $B$G$O$J$$I8K\$H$7$F3X=,$7$^$9!#(B -@strong{TODO: @code{spam-use-ifile} $B$O8=>u$G$OF0:n$7$^$;$s!#;d(B ($BLuCm(B: -Teodor Zlatanov) $B$O$=$N5!G=$,(B @code{spam.el} $B$G$O$J$/(B -$B$F(B @code{ifile-gnus.el} $B$G9T$J$o$l$k$Y$-$@$H;W$&$N$G!"(B -@code{ifile-gnus.el} $B$N:nl=j$K0\$5$l$^$9!#>l=j$H$$$&$N$O%0%k!<%WL>$N$3$H$G$9!#(B +@code{spam-process-destination} $B%Q%i%a!<%?$,@_Dj$5$l$F$$$J$$$H!"(Bspam $B5-(B +$B;v$OC1$K4|8B@Z$l>C5n$5$l$^$9!#(B $BF~$C$F$/$k%a!<%k$r_I2a$9$kL\E*$G(B @code{spam.el} $B$r;H$&$K$O!"FC5iJ,3d%j%9(B $B%H(B @code{nnmail-split-fancy} $B$^$?$O(B @code{nnimap-split-fancy} $B$K0J2<$rDI(B @@ -21032,6 +21038,14 @@ Teodor Zlatanov) $B$O$=$N5!G=$,(B @code{spam.el} $B$G$O$J$/(B $B%U%)%k%H$G$O$=$N%0%k!<%WL>$O(B @samp{spam} $B$G$9$,!"%+%9%?%^%$%:$9$k$3$H$O(B $B2DG=$G$9!#(B +@emph{TODO: $B8=>u(B spam.el $B$O5-;v$r%P%C%/%(%s%I$KEjF~$9$k$3$H$@$1$r%5%]!<(B +$B%H$7$^$9!#5-;v$,$b$O$d(B spam $B$^$?$O(B ham $B$G$O$J$$$H(B spam.el $B$KEA$($kJ}K!$O(B +$B$"$j$^$;$s!#(B} + +@emph{TODO: spam.el $B$O$9$Y$F$NE}7W%G!<%?%Y!<%9$r71N}$9$k$?$a$N0lDjITJQ$N(B +$BJ}K!$rDs6!$9$kI,MW$,$"$j$^$9!#$$$/$D$+$O$=$N5!G=$r<+A0$G;}$C$F$$$^$9$,!"(B +$B$=$&$G$J$$$b$N$b$"$j$^$9!#(B} + $B0J2<$O(B @code{spam-split} $B$NF0:n$r@)8f$9$k$?$a$K;H$&$3$H$,$G$-$k3Fl9g!"(BBogofilter $B$N $B$D$N(B spam $B%W%m%;%C%5!<$G$"$k$3$H$KCm0U$7$F2<$5$$!#(B} @end defvar -@node Ifile spam filtering -@subsubsection Ifile $B$K$h$k(B spam $B$N_I2a(B +@node ifile spam filtering +@subsubsection ifile $B$K$h$k(B spam $B$N_I2a(B @cindex spam filtering @cindex ifile, spam filtering @cindex spam.el @defvar spam-use-ifile -Bogofilter $B$K;w$?E}7WJ,@O4o$G$"$k(B Ifile $B$r(B @code{spam-split} $B$K;H$$$?$$(B -$B>l9g$O!"$3$NJQ?t$rM-8z$K$7$F2<$5$$!#:#$N$H$3(B -$B$m(B @code{ifile-gnus.el} $B$r(B load $B$7$J$1$l$P$J$j$^$;$s!#(B -Ifile $B$N(B @code{spam.el} $B$X$NE}9g$O$^$@:Q$s$G$$$^$;$s$,!"$=$l$r9%$`$J$i(B -$B$P(B @code{ifile-gnus.el} $B$rC1FH$K;H$&$3$H$,$G$-$^$9!#(B +Bogofilter $B$K;w$?E}7WJ,@O4o$G$"$k(B ifile $B$r(B @code{spam-split} $B$K;H$$$?$$(B +$B>l9g$O!"$3$NJQ?t$rM-8z$K$7$F2<$5$$!#(B + +@end defvar + +@defvar spam-ifile-all-categories + +@c TRANSLATEME! +Enable this variable if you want @code{spam-use-ifile} to give you all +the ifile categories, not just spam/non-spam. If you use this, make +sure you train ifile as described in its documentation. + +@end defvar + +@defvar spam-ifile-spam-category + +This is the category of spam messages as far as ifile is concerned. +The actual string used is irrelevant, but you probably want to leave +the default value of @samp{spam}. +@end defvar + +@defvar spam-ifile-database-path + +This is the filename for the ifile database. It is not specified by +default, so ifile will use its own default database name. @end defvar -Ifile $B$O!"(B@code{spam-split} $B$rDL$7$FF~$C$FMh$?%a!<%k$r(B spam $B$H(B ham $B$K_I(B -$B2a$9$k$@$1$N$?$a$K;H$&$3$H$,$G$-$^$9!#$=$l$O(B @code{ifile-gnus.el} $B$N$7$?$$$H$-$O!"<-=q$r%j%;%C%H$9$kI,MW$,$"$j$^$9!#(B -@end defvar - @defun spam-stat-reset @code{spam-stat} $B%O%C%7%e%F!<%V%k$r%j%;%C%H$7!"$9$Y$F$NE}7W$r:o=|$7$^$9!#(B +@end defun $B9T$J$C$?$i<-=q$r%;!<%V$7$J$1$l$P$J$j$^$;$s!#<-=q$O$+$J$jBg$-$/$J$k$+$b$7(B $B$l$^$;$s!#<-=q$rDI2C99?7$7$J$$>l9g(B ($B8@$$49$($k$H!"Nc$($PKh7n0l2s:n$jD>$9(B $B>l9g(B)$B!"IQHK$K8=$l$J$$$+!"$^$?$O(B spam $B$+Hs(B-spam $B$N$I$A$i$KB0$9$k$+$,$O$C(B $B$-$j$7$J$$$9$Y$F$NC18l$r:o=|$9$k$3$H$K$h$C$F!"<-=q$N%5%$%:$r>.$5$/$9$k$3(B $B$H$,$G$-$^$9!#(B -@end defun @defun spam-stat-reduce-size $B<-=q$N%5%$%:$r>.$5$/$7$^$9!#$3$l$O<-=q$rDI2C99?7$7$?$/$J$$>l9g$@$1;H$C$F(B @@ -21496,66 +21572,59 @@ Spam $BMQ$N%0%k!<%W$G$9!#%G%#%U%)%k%H$O(B @samp{mail.spam} $B$G$9!#(B @code{spam-stat} $B$r;H$&$?$a$No$N%a!<%k$@$H$O$b$O$d9M$($i$l$J$$%a!<%k$,$"$k%P%C%U%!$G(B -$B8F$P$l$^$9(B; $B$9$G$KHs(B-spam $B$G$"$k$b$N$H$7$F=hM}$5$l$F$7$^$C$?%a!<%k$NCO0L(B +$B8F$P$l$^$9!#$9$G$KHs(B-spam $B$G$"$k$b$N$H$7$F=hM}$5$l$F$7$^$C$?%a!<%k$NCO0L(B $B$NJQ99$K;H$C$F2<$5$$!#(B - @end defun @defun spam-stat-buffer-change-to-non-spam $BDL>o$N%a!<%k$G$O$J$$(B spam $B$@$H$O$b$O$d9M$($i$l$J$$%a!<%k$,$"$k%P%C%U%!$G(B -$B8F$P$l$^$9(B; $B$9$G$K(B spam $B$G$"$k$b$N$H$7$F=hM}$5$l$F$7$^$C$?%a!<%k$NCO0L$N(B +$B8F$P$l$^$9!#$9$G$K(B spam $B$G$"$k$b$N$H$7$F=hM}$5$l$F$7$^$C$?%a!<%k$NCO0L$N(B $BJQ99$K;H$C$F2<$5$$!#(B - @end defun @defun spam-stat-save -$B%O%C%7%e%F!<%V%k$r%U%!%$%k$K%;!<%V$7$^$9(B; $BJQ?t(B @code{spam-stat-file} $B$G(B +$B%O%C%7%e%F!<%V%k$r%U%!%$%k$K%;!<%V$7$^$9!#JQ?t(B @code{spam-stat-file} $B$G(B $B@_Dj$5$l$?%U%!%$%kL>$,;H$o$l$^$9!#(B - @end defun @defun spam-stat-load -$B%O%C%7%e%F!<%V%k$r%U%!%$%k$+$i(B load $B$7$^$9(B; $BJQ(B +$B%O%C%7%e%F!<%V%k$r%U%!%$%k$+$i(B load $B$7$^$9!#JQ(B $B?t(B @code{spam-stat-file} $B$G@_Dj$5$l$?%U%!%$%kL>$,;H$o$l$^$9!#(B - @end defun @defun spam-stat-score-word $BC18l$N(B spam $B%9%3%"$rJV$7$^$9!#(B - @end defun @defun spam-stat-score-buffer $B%P%C%U%!$N(B spam $B%9%3%"$rJV$7$^$9!#(B - @end defun @defun spam-stat-split-fancy -$BFC5i%a!<%kJ,3d$N$?$a$K!"(B@code{nnmail-split-fancy} $B$K5,(B -$BB'(B @samp{(: spam-stat-split-fancy)} $B$rDI2C$7$^$9!#(B +$BFC5i%a!<%kJ,3d$N$?$a$K$3$N4X?t$r;H$C$F2<$5$$!#(B +@code{nnmail-split-fancy} $B$K5,B'(B @samp{(: spam-stat-split-fancy)} $B$rDI2C(B +$B$7$^$9!#(B +@end defun -$B$3$l$K$O(B @file{~/.gnus} $B$K0J2<$,I,MW$G$9(B: +$B$=$l$r;H$&A0$K!"I,$:<-=q$,(B load $B$5$l$F$$$k$h$&$K$7$F2<$5$$!#$3$l$K(B +$B$O(B @file{~/.gnus} $B%U%!%$%k$K0J2<$,I,MW$G$9(B: @example (require 'spam-stat) (spam-stat-load) @end example -@end defun - $BBeI=E*$J%F%9%H$O0J2<$N4X?t8F=P$7$rI,MW$H$7$^$9(B: @example diff --git a/texi/gnus.texi b/texi/gnus.texi index ccc8432..9735d82 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -21472,17 +21472,22 @@ and nothing else. When you leave a @emph{spam} group, all spam-marked articles are marked as expired after processing with the spam processor. This is -not done for @emph{unclassified} or @emph{ham} groups. +not done for @emph{unclassified} or @emph{ham} groups. Also, any +@strong{ham} articles in a spam group will be moved to a location +determined by either the @code{ham-process-destination} group +parameter or the @code{gnus-ham-process-destinations} variable. The +location is a group name. If the @code{ham-process-destination} +parameter is not set, spam articles are only expired. When you leave a @emph{ham} group, all ham-marked articles are sent to a ham processor, which will study these as non-spam samples. -@strong{TODO: The @code{ifile} spam processor does not work at this -time. I'm waiting for info from the author of @code{ifile-gnus.el}, -because I think that functionality should go in @code{ifile-gnus.el} -rather than @code{spam.el}. You can still use @code{spam-use-ifile} -to tell @code{spam-split} you want to use ifile for splitting incoming -mail.} +When you leave a @emph{ham} or @emph{unclassified} group, all +@strong{spam} articles are moved to a location determined by either +the @code{spam-process-destination} group parameter or the +@code{gnus-spam-process-destinations} variable. The location is a +group name. If the @code{spam-process-destination} parameter is not +set, the spam articles are only expired. To use the @code{spam.el} facilities for incoming mail filtering, you must add the following to your fancy split list @@ -21501,6 +21506,14 @@ mail considered to be spam into the group name given by the variable @code{spam-split-group}. By default that group name is @samp{spam}, but you can customize it. +@emph{TODO: Currently, spam.el only supports insertion of articles +into a backend. There is no way to tell spam.el that an article is no +longer spam or ham.} + +@emph{TODO: spam.el needs to provide a uniform way of training all the +statistical databases. Some have that functionality built-in, others +don't.} + The following are the methods you can use to control the behavior of @code{spam-split} and their corresponding spam and ham processors: @@ -21509,7 +21522,8 @@ The following are the methods you can use to control the behavior of * BBDB Whitelists:: * Blackholes:: * Bogofilter:: -* Ifile spam filtering:: +* ifile spam filtering:: +* spam-stat filtering:: * Extending spam.el:: @end menu @@ -21681,25 +21695,86 @@ Bogofilter spam processor is the only spam processor to also do ham processing.} @end defvar -@node Ifile spam filtering -@subsubsection Ifile spam filtering +@node ifile spam filtering +@subsubsection ifile spam filtering @cindex spam filtering @cindex ifile, spam filtering @cindex spam.el @defvar spam-use-ifile -Enable this variable if you want @code{spam-split} to use Ifile, a -statistical analyzer similar to Bogofilter. Currently you must have -@code{ifile-gnus.el} loaded. The integration of Ifile with -@code{spam.el} is not finished yet, but you can use -@code{ifile-gnus.el} on its own if you like. +Enable this variable if you want @code{spam-split} to use ifile, a +statistical analyzer similar to Bogofilter. + +@end defvar + +@defvar spam-ifile-all-categories + +Enable this variable if you want @code{spam-use-ifile} to give you all +the ifile categories, not just spam/non-spam. If you use this, make +sure you train ifile as described in its documentation. + +@end defvar + +@defvar spam-ifile-spam-category + +This is the category of spam messages as far as ifile is concerned. +The actual string used is irrelevant, but you probably want to leave +the default value of @samp{spam}. +@end defvar + +@defvar spam-ifile-database-path + +This is the filename for the ifile database. It is not specified by +default, so ifile will use its own default database name. + +@end defvar + +The ifile mail classifier is similar to Bogofilter in intent and +purpose. A ham and a spam processor are provided, plus the +@code{spam-use-ifile} variable to indicate to spam-split that ifile +should be used. The 1.2.1 version of ifile was used to test this +functionality. + +@node spam-stat spam filtering +@subsubsection spam-stat spam filtering +@cindex spam filtering +@cindex spam-stat, spam filtering +@cindex spam-stat.el +@cindex spam.el + +@xref{Filtering Spam Using Statistics (spam-stat.el)}. + +@defvar spam-use-stat + +Enable this variable if you want @code{spam-split} to use +spam-stat.el, an Emacs Lisp statistical analyzer. + +@end defvar + +@defvar gnus-group-spam-exit-processor-stat +Add this symbol to a group's @code{spam-process} parameter by +customizing the group parameters or the +@code{gnus-spam-process-newsgroups} variable. When this symbol is +added to a group's @code{spam-process} parameter, the spam-marked +articles will be added to the spam-stat database of spam messages. +@end defvar +@defvar gnus-group-ham-exit-processor-stat +Add this symbol to a group's @code{spam-process} parameter by +customizing the group parameters or the +@code{gnus-spam-process-newsgroups} variable. When this symbol is +added to a group's @code{spam-process} parameter, the ham-marked +articles in @emph{ham} groups will be added to the spam-stat database +of non-spam messages. Note that this ham processor has no effect in +@emph{spam} or @emph{unclassified} groups. @end defvar -Ifile can only be used to filter incoming mail into spam and ham -through the @code{spam-split} function. It will be better integrated -with @code{spam.el} with the next release of @code{ifile-gnus.el}. +This enables spam.el to cooperate with spam-stat.el. spam-stat.el +provides an internal (Lisp-only) spam database, which unlike ifile or +Bogofilter does not require external programs. A spam and a ham +processor, and the @code{spam-use-stat} variable for @code{spam-split} +are provided. @node Extending spam.el @subsubsection Extending spam.el @@ -21865,14 +21940,14 @@ This variable holds the hash-table with all the statistics -- the dictionary we have been talking about. For every word in either collection, this hash-table stores a vector describing how often the word appeared in spam and often it appeared in non-spam mails. +@end defvar If you want to regenerate the statistics from scratch, you need to reset the dictionary. -@end defvar - @defun spam-stat-reset Reset the @code{spam-stat} hash-table, deleting all the statistics. +@end defun When you are done, you must save the dictionary. The dictionary may be rather large. If you will not update the dictionary incrementally @@ -21880,7 +21955,6 @@ be rather large. If you will not update the dictionary incrementally can reduce the size of the dictionary by deleting all words that did not appear often enough or that do not clearly belong to only spam or only non-spam mails. -@end defun @defun spam-stat-reduce-size Reduce the size of the dictionary. Use this only if you do not want @@ -21927,7 +22001,7 @@ The group to use for spam. Default is @samp{mail.spam}. @end defvar If you also filter mail with specific subjects into other groups, use -the following expression. It only the mails not matching the regular +the following expression. Only mails not matching the regular expression are considered potential spam. @example @@ -21972,66 +22046,58 @@ dictionary! The main interface to using @code{spam-stat}, are the following functions: @defun spam-stat-buffer-is-spam -called in a buffer, that buffer is considered to be a new spam mail; -use this for new mail that has not been processed before - +Called in a buffer, that buffer is considered to be a new spam mail. +Use this for new mail that has not been processed before. @end defun @defun spam-stat-buffer-is-no-spam -called in a buffer, that buffer is considered to be a new non-spam -mail; use this for new mail that has not been processed before - +Called in a buffer, that buffer is considered to be a new non-spam +mail. Use this for new mail that has not been processed before. @end defun @defun spam-stat-buffer-change-to-spam -called in a buffer, that buffer is no longer considered to be normal -mail but spam; use this to change the status of a mail that has -already been processed as non-spam - +Called in a buffer, that buffer is no longer considered to be normal +mail but spam. Use this to change the status of a mail that has +already been processed as non-spam. @end defun @defun spam-stat-buffer-change-to-non-spam -called in a buffer, that buffer is no longer considered to be spam but -normal mail; use this to change the status of a mail that has already -been processed as spam - +Called in a buffer, that buffer is no longer considered to be spam but +normal mail. Use this to change the status of a mail that has already +been processed as spam. @end defun @defun spam-stat-save -save the hash table to the file; the filename used is stored in the -variable @code{spam-stat-file} - +Save the hash table to the file. The filename used is stored in the +variable @code{spam-stat-file}. @end defun @defun spam-stat-load -load the hash table from a file; the filename used is stored in the -variable @code{spam-stat-file} - +Load the hash table from a file. The filename used is stored in the +variable @code{spam-stat-file}. @end defun @defun spam-stat-score-word -return the spam score for a word - +Return the spam score for a word. @end defun @defun spam-stat-score-buffer -return the spam score for a buffer - +Return the spam score for a buffer. @end defun @defun spam-stat-split-fancy -for fancy mail splitting; add the rule @samp{(: spam-stat-split-fancy)} to -@code{nnmail-split-fancy} +Use this function for fancy mail splitting. Add the rule @samp{(: +spam-stat-split-fancy)} to @code{nnmail-split-fancy} +@end defun -This requires the following in your @file{~/.gnus} file: +Make sure you load the dictionary before using it. This requires the +following in your @file{~/.gnus} file: @example (require 'spam-stat) (spam-stat-load) @end example -@end defun - Typical test will involve calls to the following functions: @example