From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48958 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: Trouble with spam.el and ifile Date: Wed, 08 Jan 2003 11:07:04 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: 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 1042042259 5003 80.91.224.249 (8 Jan 2003 16:10:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 16:10:59 +0000 (UTC) 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 18WImq-0001Hb-00 for ; Wed, 08 Jan 2003 17:10:36 +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 18WInO-0007xM-00; Wed, 08 Jan 2003 10:11:10 -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:12:05 -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 KAA14668 for ; Wed, 8 Jan 2003 10:11:51 -0600 (CST) Original-Received: (qmail 52790 invoked by alias); 8 Jan 2003 16:10:52 -0000 Original-Received: (qmail 52785 invoked from network); 8 Jan 2003 16:10:51 -0000 Original-Received: from fort-point-station.mit.edu (18.7.7.76) by 66.230.238.6 with SMTP; 8 Jan 2003 16:10:51 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id LAA11868 for ; Wed, 8 Jan 2003 11:10:50 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id LAA04340; Wed, 8 Jan 2003 11:10:50 -0500 (EST) Original-Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id LAA29866; Wed, 8 Jan 2003 11:07:04 -0500 (EST) Original-To: ding@gnus.org In-Reply-To: <4nfzs3llqx.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Wed, 08 Jan 2003 10:11:34 -0500") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Artificial Intelligence, sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48958 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48958 Ted Zlatanov writes: > On Tue, 07 Jan 2003, dmaze@MIT.EDU wrote: >> spam-summary-prepare-exit, eh? That has >> >> ;; Only for spam groups, we expire and maybe move articles >> (when (spam-group-spam-contents-p gnus-newsgroup-name) >> (spam-mark-spam-as-expired-and-move-routine >> (gnus-parameter-spam-process-destination gnus-newsgroup-name))) >> >> ...but that seems to be the opposite behavior from what I expect > > The behavior made sense to me at the time, but I see what you mean and > my original thought was wrong. Perhaps it should be either reversed > to apply to groups that are not spam (ham + unclassified), or *all* > groups should have their spam-marked articles processed by > spam-mark-spam-as-expired-and-move-routine. Should I pick one or the > other, or make it yet another user option? Picking one or the other is probably fine. Reversing the sense of the test makes sense to me. >> -- Is there any way to specify a group as a ham group besides group >> parameters? I want every nnml group except my spam group to be >> ham, but not groups in other backends, and my topic hierarchy >> mixes news, mail, and other things. Setting ham on a per-group >> basis is prohibitive with several hundred nnml groups and >> automatic group generation from split methods. > > I'm not sure what other way to provide. You can already do it by > regex (which should be able to do an exception). How would you > suggest handling your case? A function hook? 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. 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? -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell