Gnus development mailing list
 help / color / mirror / Atom feed
From: bkhl@elektrubadur.se (Björn Lindström)
Subject: Problem with spam.el and BBDB
Date: Wed, 14 Apr 2004 06:37:52 +0200	[thread overview]
Message-ID: <s38brlvdvj3.fsf@numerus.ling.uu.se> (raw)

(I sent this question once before, but I was wrong about the problem
then. Answer this one instead)

Here are my Gnus split rules:

(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"))

However, unless I comment out (: spam-split) it gives this error:

Error in `nnmail-split-methods'; using `bogus' mail group

Since I guess that my spam.el setup might affect the answer to this,
here it is:

(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")))

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




             reply	other threads:[~2004-04-14  4:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14  4:37 Björn Lindström [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-04-14  4:02 Björn Lindström
2004-04-15 19: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=s38brlvdvj3.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).