Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Problems with spam.el again
@ 2004-04-14  5:45 Björn Lindström
  2004-04-14 10:20 ` Björn Lindström
       [not found] ` <yova1xmqg524.fsf@relaskop.wsl.ch>
  0 siblings, 2 replies; 3+ messages in thread
From: Björn Lindström @ 2004-04-14  5:45 UTC (permalink / 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/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-14 23:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14  5:45 Problems with spam.el again Björn Lindström
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

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).