Gnus development mailing list
 help / color / mirror / Atom feed
From: Jody Klymak <jklymak@ucsd.edu>
Subject: Re: wallowing out of the spam quagmire
Date: Mon, 21 Jun 2004 18:53:15 -0700	[thread overview]
Message-ID: <m2u0x48ik4.fsf@hornby.local> (raw)
In-Reply-To: <m3d63s9ymb.fsf@newsguy.com>


Hi Harry,

Harry Putnam <reader@newsguy.com> writes:

> In my world, this is quite `complex'.

heh heh.  I think it was simpler when I started and has kind of
balooned.  However, my setup still works....

> I've probably talked myself right into a hole but how can I set up
> the simple system described above?


Step 1:  this goes in your .gnus.el:
(setq
  nnimap-split-rule 'nnimap-split-fancy
  nnimap-split-inbox "INBOX"
  nnimap-split-fancy '(|
		       (: spam-split)
               ;; For example (any ".*bbdb.*" "mail/ZIn.bbdb")
		      ;; default mailbox
		      "mail/Inbox.good")
)


Step 2: - I do this with customize, but I suspect you can do it with
setq-s.  

 '(spam-bogofilter-path "/usr/local/bin/bogofilter")
 '(spam-junk-mailgroups (quote ("mail/junk")))
 '(spam-process-ham-in-spam-groups t)
 '(spam-split-group "mail/junk")
 '(spam-use-bogofilter t)
 '(spam-use-bogofilter-headers nil)

Step 3: Set parameters in mail/junk 
I think you need to go to group-customize to do this (G c on the
group).  I find this personally annoying and adds a layer of mystery
to the whole thing.  I think there is a way around it, but I'm not
sure what it is.

a) Check Group contents spam/ham classification to make it "spam"
b) Set the Spam summary exit processor to "Ham: Bogofilter" - this
will allow you to mark Ham in the spam group for training when you
get a false positive.
c) Choose a "Destination for ham articles"  I just put them in my
mail/Inbox.good.
d) Set Ham mark choices - I use gnus-read-mark and gnus-ticked-mark.
e) I set Expire wait to 2 days.  

You could also set this group to train on the spam, but bogofilter
already knew it was spam, so that may be overtraining.  

This comes out in my groups parameters looking like:

((uidvalidity . "1074123432")
 (spam-contents gnus-group-spam-classification-spam)
 (spam-process
  ((ham spam-use-bogofilter)))
 (ham-process-destination "nnimap+opg1.ucsd.edu:mail/Inbox.good")
 (ham-marks
  (gnus-read-mark gnus-ticked-mark))
 (expiry-wait . 2.0))

Let me know if this doesn't make sense.

Note that I do this over IMAP, but bogofilter runs locally.  It
should, however, work with any backend.

Cheers,  Jody.

-- 
Jody Klymak      http://opg1.ucsd.edu/~jklymak/
mailto:jklymak@ucsd.edu   




  reply	other threads:[~2004-06-22  1:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 18:27 Harry Putnam
2004-06-20  6:58 ` Jonas Steverud
2004-06-22  1:21   ` Harry Putnam
2004-06-22  1:53     ` Jody Klymak [this message]
2004-06-22 10:56       ` Harry Putnam
2004-06-22 15:03         ` Jody Klymak
2004-06-22 15:20         ` Jody Klymak
2004-06-22  7:52     ` Jonas Steverud
2004-06-22 15:18       ` Jody Klymak
2004-06-22 16:34       ` Ted Zlatanov
2004-06-22 16:32     ` Ted Zlatanov
2004-06-25 13:37     ` Kai Grossjohann
2004-06-25 14:26       ` Daniel Pittman
2004-06-25 18:46         ` Chris Green
2004-06-26 10:34         ` Harry Putnam
2004-06-26 14:55           ` [OT] Dual-MTA setup and spam filtering (was Re: wallowing out of the spam quagmire) Daniel Pittman
2004-06-26 10:18       ` wallowing out of the spam quagmire Harry Putnam
2004-06-20 23:44 ` Kevin Ryde
2004-06-21  4:28   ` Daniel Pittman
2004-06-21 14:35 ` Ted Zlatanov
2004-06-22  1:40   ` Harry Putnam
2004-06-22 16:45     ` Ted Zlatanov

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=m2u0x48ik4.fsf@hornby.local \
    --to=jklymak@ucsd.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).