From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3122 Path: news.gmane.org!not-for-mail From: Adrian Lanz Newsgroups: gmane.emacs.gnus.user Subject: Re: spam.el Date: Fri, 24 Oct 2003 15:27:36 +0200 Message-ID: References: <87ekx7ztpq.fsf@everett.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669324 17693 80.91.229.2 (31 Jan 2006 01:02:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:02:04 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:44 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 193.134.205.252 Original-X-Trace: quimby.gnus.org 1067002063 1164 193.134.205.252 (24 Oct 2003 13:27:43 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Fri, 24 Oct 2003 13:27:43 +0000 (UTC) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:bkxjbkZfzW6JCjDBo89SoMslXwU= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3263 Original-Lines: 49 X-Gnus-Article-Number: 3263 Tue Jan 17 17:31:44 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3122 Archived-At: On 20 Oct 2003, dmaze@mit.edu wrote: > Myriam Abramson writes: > >> I'm trying to install spam.el. Could somebody be kind enough to >> post/send me their spam configuration (with defcustom)? I read to >> use nnmail-split-fancy but I'm just using nnmail-split-methods and >> I assume that's okay too as long as spam-split gets called? > > I don't believe in customize. Relevant fragments out of my .gnus > file, though: > > (require 'spam) > (setq nnmail-split-fancy > `(| > (: spam-split) > ;; ... > (any "dmaze@.*mit\\.edu" "mail.misc.personal") > "mail.misc.impersonal")) > (setq nnmail-split-methods 'nnmail-split-fancy) > (setq gnus-spam-newsgroup-contents > '(("nnml:mail.misc.spam" gnus-group-spam-classification-spam) > ("nnml:.*" gnus-group-spam-classification-ham)) Two things here: 1) Don't you need to quote the dots (and eventually the beginning of the group name as well)? That is: (setq gnus-spam-newsgroup-contents '(("^nnml:mail\\.misc\\.spam" gnus-group-spam-classification-spam) ("nnml:.*" gnus-group-spam-classification-ham))) 2) What is spam.el doing with the group nnmail:mail.misc.spam, which is matched by both entries? Also, is the order relevant? Can we expect the same result with (setq gnus-spam-newsgroup-contents '(("^nnml:mail\\.misc\\.spam" gnus-group-spam-classification-spam) ("nnml:.*" gnus-group-spam-classification-ham))) and (setq gnus-spam-newsgroup-contents '(("nnml:.*" gnus-group-spam-classification-ham) ("^nnml:mail\\.misc\\.spam" gnus-group-spam-classification-spam))) Thanks, Adrian