From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51537 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: How many people mark spam in gmane groups? Date: Wed, 16 Apr 2003 12:33:39 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n4r4y1jx8.fsf@lockgroove.bwh.harvard.edu> References: <4n4r5aowwm.fsf@chubby.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 1050510945 21384 80.91.224.249 (16 Apr 2003 16:35:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2003 16:35:45 +0000 (UTC) Original-X-From: ding-owner+M81@lists.math.uh.edu Wed Apr 16 18:35:44 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 195pst-0005Ye-00 for ; Wed, 16 Apr 2003 18:35:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 195pra-0001c8-00; Wed, 16 Apr 2003 11:34:22 -0500 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=root) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 195prW-0001c3-00 for ding@lists.math.uh.edu; Wed, 16 Apr 2003 11:34:18 -0500 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA28065 for ; Wed, 16 Apr 2003 11:35:24 -0500 (CDT) 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 h3GGXiI19196 for ; Wed, 16 Apr 2003 12:33:44 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h3GGXdA12089; Wed, 16 Apr 2003 12:33:39 -0400 (EDT) Original-To: ding@hpc.uh.edu 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@hpc.uh.edu In-Reply-To: <4n4r5aowwm.fsf@chubby.bwh.harvard.edu> (Ted Zlatanov's message of "Mon, 07 Apr 2003 16:49:45 -0400") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51537 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51537 On Mon, 07 Apr 2003, tzz@lifelogs.com wrote: > - add a group parameter (global through a regex or specific for that > group) for the spam-processor. The spam-processor takes whatever > messages are marked as spam at summary exit and does something to > them (for instance, train Bogofilter). > > - mark messages as spam in that group > > - exit the group - the spam-processor will be automatically invoked > > The first one would be done just once, of course. This is now set up through spam-report.el and spam.el; you can use the spam-report-gmane function in spam-report.el on its own if you wish or you can add the gnus-group-spam-exit-processor-report-gmane processor to the exit spam processors of your Gmane groups. The Gmane groups have to be NNTP groups, I think, in order for the code to work (it uses nntp-server-buffer). It seemed to work OK for me; I looked at the network traffic and saw the acknowledgment from gmane.org arriving for each reported article, so I'm pretty sure it reports the spam properly. There are variables you can customize in spam-report.el, for instance reporting can be done through the fast inference of the X-Report-Spam URL from the article number (default), or through the slower parsing of the article itself for those whose article numbers don't correspond to the Gmane article numbers. It should be very easy to add more spam reporters to spam-report.el, and I can glue them into spam.el as we go. I don't know much about spam reporters, but there seem to be many of them and a lot of incidental code for using them from Gnus. Ted