Gnus development mailing list
 help / color / mirror / Atom feed
* Problem with spam.el and BBDB
@ 2004-04-14  4:02 Björn Lindström
  2004-04-15 19:45 ` Ted Zlatanov
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Lindström @ 2004-04-14  4:02 UTC (permalink / raw)


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

This works with the (: spam-split) _or_ the
(: (lambda () (car (bbdb/gnus-split-method))))
commented out, but if I try to use both at once I get this error:

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

Can anyone explain this?




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

* Re: Problem with spam.el and BBDB
  2004-04-14  4:02 Problem with spam.el and BBDB Björn Lindström
@ 2004-04-15 19:45 ` Ted Zlatanov
  0 siblings, 0 replies; 3+ messages in thread
From: Ted Zlatanov @ 2004-04-15 19:45 UTC (permalink / raw)


On Wed, 14 Apr 2004, bkhl@stp.ling.uu.se wrote:
> This works with the (: spam-split) _or_ the
> (: (lambda () (car (bbdb/gnus-split-method))))
> commented out, but if I try to use both at once I get this error:
> 
> Error in `nnmail-split-methods'; using `bogus' mail group
> 
> Can anyone explain this?

spam.el does some auto-loading of BBDB that *may* be causing this.
Can you do M-x toggle-debug-on-error and see where the error is
happening?  Send me the stack trace.  Also, turn gnus-verbose up to 10
and send me the contents of the *Messages* buffer when the problem
happens.

Thanks
Ted




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

* Problem with spam.el and BBDB
@ 2004-04-14  4:37 Björn Lindström
  0 siblings, 0 replies; 3+ messages in thread
From: Björn Lindström @ 2004-04-14  4:37 UTC (permalink / 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/




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

end of thread, other threads:[~2004-04-15 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14  4:02 Problem with spam.el and BBDB Björn Lindström
2004-04-15 19:45 ` Ted Zlatanov
2004-04-14  4:37 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).