Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David Hanak <dhanakDONT@isisSEND.vanderbiltME.eduSPAM>
Subject: spam elisp with spam-stat
Date: Thu, 29 Jan 2004 11:21:08 -0600	[thread overview]
Message-ID: <uisiu658b.fsf@isisSEND.vanderbiltME.eduSPAM> (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


             reply	other threads:[~2004-01-29 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-29 17:21 David Hanak [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uisiu658b.fsf@isisSEND.vanderbiltME.eduSPAM \
    --to=dhanakdont@isissend.vanderbiltme.eduspam \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).