From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50761 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: How do you make spam automatically move to spam group on exit? Date: Mon, 10 Mar 2003 10:53:11 -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: <4nisurtdzs.fsf@lockgroove.bwh.harvard.edu> References: <4nheae3ng3.fsf@lockgroove.bwh.harvard.edu> <861y1gajpv.fsf@ieee.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047311650 29547 80.91.224.249 (10 Mar 2003 15:54:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 15:54:10 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Mon Mar 10 16:54:09 2003 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 18sPah-0007di-00 for ; Mon, 10 Mar 2003 16:53:28 +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 18sPak-00025f-00; Mon, 10 Mar 2003 09:53:30 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 10 Mar 2003 09:54:31 -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 JAA17581 for ; Mon, 10 Mar 2003 09:54:18 -0600 (CST) Original-Received: (qmail 78747 invoked by alias); 10 Mar 2003 15:53:12 -0000 Original-Received: (qmail 78741 invoked from network); 10 Mar 2003 15:53:12 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 10 Mar 2003 15:53:12 -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 h2AFrBj04731 for ; Mon, 10 Mar 2003 10:53:11 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h2AFrB221345; Mon, 10 Mar 2003 10:53:11 -0500 (EST) Original-To: ding@gnus.org 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: ding@gnus.org In-Reply-To: (Emerick Rogul's message of "Sun, 09 Mar 2003 12:24:18 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (usg-unix-v) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50761 On Sun, 09 Mar 2003, emerick@cs.bu.edu wrote: > I think that I've finally puzzled-out the rest of the configuration > necessary to use bogofilter with spam.el to suit my own needs. I've > done all of my configuration via gnus variables rather than group > parameters, because I'd rather have it all gathered together in one > place and I have a lot of groups. I like to use "G c" on topics, personally, but thanks to the nice Gnus parameters it's all one thing :) > How's this look to you, Ted? Does what I've configured below match > what I've said above? If so, maybe other people will find this > config useful. > > Anyway, here it is: > > (require 'spam) > > (setq spam-use-bogofilter t) > > (setq gnus-ham-process-destinations > '(("^nnml:.*" "nnml:inbox"))) > > (setq gnus-spam-process-destinations > '(("^nnml:.*" "nnml:spam"))) > > (setq gnus-spam-process-newsgroups > '(("^nnml:.*" (gnus-group-ham-exit-processor-bogofilter > gnus-group-spam-exit-processor-bogofilter)))) > > (setq gnus-spam-newsgroup-contents > '(("^nnml:spam" gnus-group-spam-classification-spam) > ("^nnml:.*" gnus-group-spam-classification-ham))) Well, let me translate it back to English for you, and see if you agree with the process. Bogofilter will split your incoming mail into spam-split-group ("spam" by default), or pass it through to the next item in your nnmail-split-fancy. Whenever ham is found in a spam group (as determined by your action of marking it with a ham-mark) it will be moved to "nnml:inbox". Whenever spam is found in any group, it will be moved to "nnml:spam" after being processed and expired (spam will not be processed twice, since it's no longer considered spam when it is expired). You can use spam-move-spam-nonspam-groups-only if you want that to happen only in non-spam groups. All groups have Bogofilter as their ham and spam exit processor. (But Bogofilter gets invoked multiple times for the same ham! That's the case for now, unfortunately, since we lack the registry.) Any group beginning with "nnml:spam" is a spam group. Any other group is a ham group. Looks reasonable to me. I like to keep most of my groups unclassified, but that's not a big deal, and I think you're right, most people prefer a binary spam/ham classification for all mail to the ternary setup I use. Ted