Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* spam elisp with spam-stat
@ 2004-01-29 17:21 David Hanak
       [not found] ` <87hdyeh92z.fsf@everett.mit.edu>
  0 siblings, 1 reply; 4+ messages in thread
From: David Hanak @ 2004-01-29 17:21 UTC (permalink / raw)


Hi,

I'm trying to set up the spam.el package with spam-stat, and although I
read the info pages and function and variable documentations several times,
I admit that I'm confused and lost among the numerous variables.

I'd like to have a very simple setup: I have one spam group (called spam),
all the other groups are ham.  When I exit a group, I want

1, all new articles marked as spam processed by the spam-stat spam
   processor (and moved to the spam group if we are in a ham group)
2, all new articles marked as ham processed by the spam-stat ham processor
   (and moved to a default ham group if we are in the spam group)

For this, I have the following .gnus setup (I use Gnus from the CVS and
update regularly):

(setq spam-use-stat t
      spam-mark-ham-unread-before-move-from-spam-group t
      gnus-spam-process-destinations '((".*" "spam"))
      gnus-ham-process-destinations '((".*" "misc"))
      gnus-spam-newsgroup-contents
                '(("spam" gnus-group-spam-classification-spam)
                  (".*" gnus-group-spam-classification-ham))
      spam-split-group "spam")
(spam-initialize)

(setq gnus-parameters
      '((".*"
         (spam-process ((spam spam-use-stat)
                        (ham spam-use-stat))))))

My problem is that spam-stat doesn't seem to be learning new articles, so
it's probably gnus-parameters which is wrong.  (The classification of the
groups is OK, I checked it by calling gnus-parameter-spam-contents
manually.)  If I know correctly, when a spam processor is called, a message
is generated showing the number of articles being processed, and I don't
see a message like that in the message buffer after exiting a group which
had new messages.

Can someone tell me how to do this right?  I would also be grateful for any
advice on enhancing my setup.

Thanks,

-- 
David Hanak - Research Engineer
Institute for Software Integrated Systems  |  http://www.isis.vanderbilt.edu
Vanderbilt University                      |      Work phone: (615) 343 1319
Box 1829, Station B, Nashville, TN 37235   |            PGP key ID: 266BC45F


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-30 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 17:21 spam elisp with spam-stat David Hanak
     [not found] ` <87hdyeh92z.fsf@everett.mit.edu>
2004-01-29 19:35   ` David Hanak
2004-01-30 19:04   ` gnus-parameters are ignored for spam-process (was: spam elisp with spam-stat) Ted Zlatanov
2004-01-30 19:38     ` gnus-parameters are ignored for spam-process David Hanak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).