Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
To: info-gnus-english@gnu.org
Subject: A little help with the spam
Date: Wed, 30 May 2007 00:09:47 +0200	[thread overview]
Message-ID: <87myznnuxg.fsf@bast.dreaming> (raw)

Since a thread a while back I've been using the following spam related
settings. However, I'm noticing that these no longer make Gnus (No
Gnus 0.6) register spam in the spam group, spam marked as spam in
other groups, or non-spam in the spam group marked as non-spam with
bogofilter. If I go to the spam or reclassify group after it's been
moved, `B q' still says it would go to the same place.

How should I get spam.el to report to bogofilter whenever I mark
something as spam or non-spam?


;;; Spam

;; Spam
(require 'spam)
(spam-initialize)

;; Prevent multiple registration of articles.
(require 'gnus-registry)
(gnus-registry-initialize)
(setq spam-log-to-registry t)

;; Use bogofilter for spam processing.
(setq spam-use-bogofilter t)

;; Put incoming spam in "spam".
(setq spam-split-group "spam")

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

;; Train the filter.
(setq spam-process-ham-in-spam-groups t)
(setq gnus-spam-process-newsgroups
      '(("^nntp\\+news\\.gmane\\.org:"
         ((spam spam-use-gmane)))
        ("^nnml:.*"
         ((spam spam-use-bogofilter)))))

;; Move processed spam.
(setq spam-move-spam-nonspam-groups-only t)
(setq spam-mark-only-unseen-as-spam t)
(setq gnus-spam-process-destinations
      '(("^nnml:.*" "nnml:spam")))

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

;;; Expiration

(setq nnmail-expiry-wait 32)

;;; Splitting

(setq nnmail-crosspost nil
      nnmail-cache-accepted-message-ids t
      nnmail-message-id-cache-length 4096
      nnmail-cache-ignore-groups "\\`outgoing\\|spam\\'"
      nnmail-split-methods 'nnmail-split-fancy
      nnmail-split-fancy-match-partial-words t
      nnmail-split-fancy
      `(| (: spam-split)
	  ("gnus-warning" "\\<duplicat\\(e\\|ion\\) of message\\>" "duplicate")
	  (: nnmail-split-fancy-with-parent)
	  (: gnus-group-split-fancy nil t nil)
	  "misc"))

                 reply	other threads:[~2007-05-29 22:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87myznnuxg.fsf@bast.dreaming \
    --to=bkhl@elektrubadur.se \
    --cc=info-gnus-english@gnu.org \
    /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).