Gnus development mailing list
 help / color / mirror / Atom feed
From: Emerick Rogul <emerick@cs.bu.edu>
Subject: Re: How do you make spam automatically move to spam group on exit?
Date: Sun, 09 Mar 2003 12:24:18 -0500	[thread overview]
Message-ID: <vuofzpwbghp.fsf@csa.bu.edu> (raw)
In-Reply-To: <861y1gajpv.fsf@ieee.org> (Jorge Godoy's message of "Sun, 09 Mar 2003 07:59:56 -0300")

Jorge Godoy writes:

> I never remember right, but would it be impossible for you to change
> this specific group from auto expire to total expire? The result
> will be the same without the 'E' marks.

Yes, that actually works, so I'm content with that (thanks!)

I think that I've finally puzzled-out the rest of the configuration
necessary to use bogofilter with spam.el to suit my own needs.  I've
done all of my configuration via gnus variables rather than group
parameters, because I'd rather have it all gathered together in one
place and I have a lot of groups.  The way I have things setup,
misclassified ham is moved to nnml:inbox and misclassified spam is
moved to nnml:spam on group exit.  All nnml mailgroups are configured
to perform both spam and ham processing on group exit.  All nnml
groups are classified as ham, but nnml:spam is classified as spam (I'm
hoping that this does the right thing, ie. the spam classification of
nnml:spam overrides its ham classification - I believe I have the
ordering of the groups correct, and that seems like the behavior that
most people would want: "everything is ham, except this group").

I haven't done extensive testing of this yet, but it seems to do the
right thing so far (the positive path seems to work, at least).  How's
this look to you, Ted?  Does what I've configured below match what
I've said above?  If so, maybe other people will find this config
useful.

Anyway, here it is:

(require 'spam)

(setq spam-use-bogofilter t)

(setq gnus-ham-process-destinations
      '(("^nnml:.*" "nnml:inbox")))

(setq gnus-spam-process-destinations
      '(("^nnml:.*" "nnml:spam")))

(setq gnus-spam-process-newsgroups
      '(("^nnml:.*" (gnus-group-ham-exit-processor-bogofilter
                     gnus-group-spam-exit-processor-bogofilter))))

(setq gnus-spam-newsgroup-contents
      '(("^nnml:spam" gnus-group-spam-classification-spam)
        ("^nnml:.*" gnus-group-spam-classification-ham)))

-Emerick
-- 
-------------------------------------------------------------------------
Emerick Rogul             /\/     "how young are you, how old am i?
emerick@cs.bu.edu         /\/      let's count the rings around my eyes."
------------------------------------------------- 'i will dare', the mats



  reply	other threads:[~2003-03-09 17:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-07 20:34 Emerick Rogul
2003-03-07 20:56 ` Ted Zlatanov
2003-03-07 21:35   ` Emerick Rogul
2003-03-08  6:07     ` Ted Zlatanov
2003-03-08 13:21       ` Andreas Fuchs
2003-03-08 15:13         ` Ted Zlatanov
2003-03-08 17:10           ` Andreas Fuchs
2003-03-08 17:16             ` Ted Zlatanov
2003-03-09 11:33               ` Andreas Fuchs
2003-03-09  6:26       ` Emerick Rogul
2003-03-09 10:59         ` Jorge Godoy
2003-03-09 17:24           ` Emerick Rogul [this message]
2003-03-10 15:53             ` Ted Zlatanov
2003-03-10 16:31               ` Emerick Rogul
2003-03-10 17:15                 ` Ted Zlatanov
2003-03-10 18:23                   ` Ted Zlatanov
2003-03-10 15:41         ` Ted Zlatanov
2003-03-10 16:20           ` Emerick Rogul

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=vuofzpwbghp.fsf@csa.bu.edu \
    --to=emerick@cs.bu.edu \
    /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).