From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48963 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Trouble with spam.el and ifile Date: Wed, 08 Jan 2003 11:25:42 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: <4n7kdfip6h.fsf@lockgroove.bwh.harvard.edu> References: <4nadic3fo1.fsf@lockgroove.bwh.harvard.edu> <4n1y3owr50.fsf@lockgroove.bwh.harvard.edu> <4nfzs3llqx.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042043156 9683 80.91.224.249 (8 Jan 2003 16:25:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 16:25:56 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WJ17-0002TF-00 for ; Wed, 08 Jan 2003 17:25:21 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18WJ1m-0000DC-00; Wed, 08 Jan 2003 10:26:02 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 08 Jan 2003 10:26:56 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA14773 for ; Wed, 8 Jan 2003 10:26:43 -0600 (CST) Original-Received: (qmail 53192 invoked by alias); 8 Jan 2003 16:25:44 -0000 Original-Received: (qmail 53186 invoked from network); 8 Jan 2003 16:25:44 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 8 Jan 2003 16:25:44 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h08GPhW13656; Wed, 8 Jan 2003 11:25:43 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h08GPhe24366; Wed, 8 Jan 2003 11:25:43 -0500 (EST) Original-To: David Z Maze X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: David Z Maze , ding@gnus.org In-Reply-To: (David Z Maze's message of "Wed, 08 Jan 2003 11:07:04 -0500") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.2 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48963 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48963 On Wed, 08 Jan 2003, dmaze@MIT.EDU wrote: > By regex would be great, but I don't know which variable to set. > (By regex is even better if spamness overrides hamness, since then > "nnml:.*" can be ham.) In particular, > > (defun spam-group-ham-contents-p (group) > (if (stringp group) > (memq 'gnus-group-spam-classification-ham > (gnus-parameter-spam-contents group)) > nil)) > > doesn't do any obvious testing of group against a regex; > gnus-group-spam-contents-p at least tests if the group is a member > of spam-junk-mailgroups. *pause* *enlightenment* I want to set > > (setq gnus-spam-newsgroup-contents > '(("nnml:.*" gnus-group-spam-classification-ham) > ("nnml:mail.misc.spam" gnus-group-spam-classification-spam))) > > since it looks like the magic in gnus-define-group-parameter picks > the last matching regexp from the alist. I just use the gnus-define-group-parameter magic, it seems to do the right thing. But did you try setting the group spam-contents parameter with `G c' instead of gnus-spam-newsgroup-contents? That should override the global setting. > Probably (gnus)Filtering Spam Using spam.el should talk about this; > now that I think I have some understanding, would you like me to > write up some text? Yes, if you could look it over for inaccuracies, especially considering the new ifile modifications and the new behavior with spam- and ham-moving, I would greatly appreciate it. Ted