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

* Re: Problems with spam.el again
  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>
  1 sibling, 0 replies; 3+ messages in thread
From: Björn Lindström @ 2004-04-14 10:20 UTC (permalink / raw)


bkhl@elektrubadur.se (Björn Lindström) writes:

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

The exact messages are these, maybe I should say:

Exiting summary buffer and applying spam rules
Registering 1  articles with classification spam, check spam-use-bogofilter
apply: Invalid argument 3

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


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

* Re: Problems with spam.el again
       [not found] ` <yova1xmqg524.fsf@relaskop.wsl.ch>
@ 2004-04-14 23:04   ` Björn Lindström
  0 siblings, 0 replies; 3+ messages in thread
From: Björn Lindström @ 2004-04-14 23:04 UTC (permalink / raw)


Adrian Lanz <lanz@fowi.ethz.ch> writes:

> Try this to initialize the spam tools (I think you don't need
> "(require 'spam)"):
>
> ;; Spam
> (spam-initialize)
> (gnus-registry-initialize)
> (setq spam-log-to-registry t)
>
> ;; Processsor for splitting incoming mail
> (setq spam-use-bogofilter t)

It seems that I do need the (require 'spam). Also, I need to do (require
'gnus-registry) to use (gnus-registry-initialize

> You can test which splitting methods (spam, duplicates, group
> parameters, bbdb) causes the error by simply commenting them out one
> by one.

That's what I did to find out that spam-split was the only problem there.

> Also - normally this would not be needed, but ... - replace
> "(: spam-split)" with "(: spam-split 'spam-use-bogofilter)". What
> happens if you set:
>
> (setq nnmail-split-methods 'nnmail-split-fancy
>       nnmail-split-fancy
>       `(|
>         (: spam-split 'spam-use-bogofilter)
>         "misc"))

That gives the exact same problems.

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