Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
Subject: Problems with spam.el again
Date: Wed, 14 Apr 2004 07:45:21 +0200	[thread overview]
Message-ID: <s38r7urru32.fsf@numerus.ling.uu.se> (raw)

I can't ever seem to get this right. This time, I stopped using
gnus-alias, and suddenly spam.el doesn't work. I don't know what I might
have touched. Anyway, below is my spam.el and splitting setup.

There are two symptoms.

a) with spam-split in the splitting rules, all mail go to bogus. The
error message says there is an error in nnmail-split-methods.

b) whenever I exit a group and it tries to report spam, I get an error
saying that the third argument to some apply is wrong.

Could someone please help me track down the problem here?


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Spam

(require 'spam)
(spam-initialize)

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

;; Where to put incoming mail
(setq spam-split-group "spam")

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

;; Train 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)))))

;; Move 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")))

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


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Splitting

(setq nnmail-crosspost nil
      nnmail-split-methods 'nnmail-split-fancy
      bbdb/gnus-split-default-group nil
      bbdb/gnus-split-nomatch-function nil
      bbdb/gnus-split-myaddr-regexp gnus-ignored-from-addresses
      nnmail-split-fancy
      `(|
        (: spam-split)                  ; Spam
        ("gnus-warning" "duplicat\\(e\\|ion\\) of message" "duplicate") ; Duplicate messages
        (: gnus-group-split-fancy nil t nil) ; Group parameter splitting
        (: (lambda ()                   ; BBDB splitting
            (car (bbdb/gnus-split-method))))
        "misc"))


-- 
Björn Lindström <bkhl@elektrubadur.se>
http://bkhl.elektrubadur.se/


             reply	other threads:[~2004-04-14  5:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14  5:45 Björn Lindström [this message]
2004-04-14 10:20 ` Björn Lindström
     [not found] ` <yova1xmqg524.fsf@relaskop.wsl.ch>
2004-04-14 23:04   ` Björn Lindström

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=s38r7urru32.fsf@numerus.ling.uu.se \
    --to=bkhl@elektrubadur.se \
    /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).