spam-stat.el is now part of Oort Gnus, and documented in the manual.

You can get a copy of spam-stat.el here. It will work without Oort Gnus, too.

Here is the spam-stat.el quickstart: You need two nnml directories, one with spam, one with non-spam mails before you start.

  1. Call ‘spam-stat-process-spam-directory’ on `~/Mail/mail/spam’.
  2. Call ‘spam-stat-process-non-spam-directory’ on `~/Mail/mail/misc’.
  3. Call ‘spam-stat-save’ to save the dictionary. Note that you might prefer to use (let ((coding-system-for-write ‘emacs-mule)) (spam-stat-save)) instead, else sometimes the weird coding systems from the spams will render your .spam-stat.el an invalid lisp file. But then note that if you ever chose iso-2022-jp or similar, then it will be borked on reading it next time, since mule only examines the beginning of files…
  4. Add this to your `~/.gnus’ file:
     (require 'spam-stat)

And finally, change your mail splitting following one of these examples:

     (setq nnmail-split-fancy
           `(| (: spam-stat-split-fancy)
     (setq nnmail-split-fancy
           `(| ("Content-Type" "text/html" "mail.spam.filtered")
               ("Subject" "\\bspam-stat\\b" "mail.emacs")
               (: spam-stat-split-fancy)

Starting with spam-stat.el

Using spam-stat with gnus 5.9.0 (the current version)

See also: SpamStatConfiguration

CategoryGnus | CategoryMailAddons | SpamFiltering