Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Adrian Lanz <lanz@fowi.ethz.ch>
Subject: Re: Spam setup help
Date: Wed, 25 Feb 2004 11:45:33 +0100	[thread overview]
Message-ID: <yovak72be8tu.fsf@relaskop.wsl.ch> (raw)
In-Reply-To: <s38fzczc3xe.fsf@numerus.ling.uu.se>

On 25 Feb 2004, bkhl@elektrubadur.se wrote:

> I've been asking about this before, but never got a satisfying
> answer. Now that I've updated to 5.10.6, I thought it would be a
> good occasion to try again.
>
> Below is my gnus/bogofilter spam setup.
>
> This does nicely move all spam marked mails into nnfolder:spam and
> processes them with bogofilter.
>
> What I miss is the ability to unmark spam in nnfolder:spam, and
> then, when I exit the group, get them automatically processed as ham
> with bogofilter, and resplitted.
>
> I was hoping that setting gnus-ham-process-destinations would help
> with that, but apparently it's not enough.

Seems the configuration has changed. Try

;; (setq spam-use-stat t) ;; if needed
;; initialize the system
(spam-initialize)

;; prevent multiple registration of articles
(gnus-registry-initialize)
(setq spam-log-to-registry t)

;; declare processsor for splitting incoming mail
(setq spam-use-bogofilter t)

;; where we split incoming spam to
(setq spam-split-group "spam")

;; declare spam and ham groups PROBLEM/QUESTION [1]
(setq spam-junk-mailgroups nil)
(setq gnus-spam-newsgroup-contents
      '(("^nnfolder:spam" gnus-group-spam-classification-spam)
	("^nnfolder:.*" gnus-group-spam-classification-ham)))

;; training spam detection tools
(setq spam-process-ham-in-spam-groups t)
(setq gnus-spam-process-newsgroups
      '(
	("^nntp\\+news\\.gmane\\.org:"
	 ((spam spam-use-gmane)
          (spam spam-use-bogofilter)))
        ("^nnfolder:.*"
	 ((spam spam-use-bogofilter)
	  (ham spam-use-bogofilter)))))

;; moving processed spam
(setq spam-move-spam-nonspam-groups-only t)
(setq spam-mark-only-unseen-as-spam t)
(setq gnus-spam-process-destinations
      '(
        ("^nntp\\+news\\.gmane\\.org:" "nnfolder:spam")
        ("^nnfolder:.*" "nnfolder:spam")))

;; moving processed ham
(setq spam-mark-ham-unread-before-move-from-spam-group t)
(setq gnus-ham-process-destinations
      '(("^nnfolder:spam" "nnfolder:reclassify")))


[1] Ted and others: What is the corret/working solution here. We do
not have a "not matching regexp" syntax in Elisp. How to declare all
groups in nnfolder as ham except the nnfolder:spam group?

a) (setq spam-junk-mailgroups '("nnfolder:spam"))
   (setq gnus-spam-newsgroup-contents
      '(("^nnfolder:.*" gnus-group-spam-classification-ham)))

   But in the code it says, that variable spam-junk-mailgroups is
   depricated.

b) (setq spam-junk-mailgroups nil)
   (setq gnus-spam-newsgroup-contents
      '(("^nnfolder:spam" gnus-group-spam-classification-spam)
	("^nnfolder:.*" gnus-group-spam-classification-ham)))

c) (setq spam-junk-mailgroups nil)
   (setq gnus-spam-newsgroup-contents
      '(("^nnfolder:.*" gnus-group-spam-classification-ham)
        ("^nnfolder:spam" gnus-group-spam-classification-spam)))


   Any difference between b) and c)? Do one of b) and c) do what we
   expect it to do, that is decalre all groups in nnfolder as ham
   except the group nnfolder:spam?


   Similar questions may arise for declarations in
   gnus-spam-process-newsgroups, gnus-ham-process-destinations and
   gnus-spam-process-destinations.

   A nice solution was if we could declare things like:

   (setq spam-junk-mailgroups nil)
   (setq gnus-spam-newsgroup-contents
      '(('(not "^nnfolder:spam") gnus-group-spam-classification-ham)
        ("^nnfolder:spam" gnus-group-spam-classification-spam)))


Thanks, Adrian.


  reply	other threads:[~2004-02-25 10:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25  2:02 Björn Lindström
2004-02-25 10:45 ` Adrian Lanz [this message]
2004-02-29  1:09   ` Björn Lindström
2004-03-13 17:04 ` Kai Grossjohann

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=yovak72be8tu.fsf@relaskop.wsl.ch \
    --to=lanz@fowi.ethz.ch \
    /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).