From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51432 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: Mon, 14 Apr 2003 15:33:02 -0400 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: <4nvfxgri1d.fsf@lockgroove.bwh.harvard.edu> References: <4n4r5aowwm.fsf@chubby.bwh.harvard.edu> <87llyfsoi6.fsf@eris.void.at> <877k9y1x96.fsf@eris.void.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050348831 13717 80.91.224.249 (14 Apr 2003 19:33:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2003 19:33:51 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Mon Apr 14 21:33:47 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 1959i6-0003Yb-00 for ; Mon, 14 Apr 2003 21:33:46 +0200 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 1959iE-0000r1-00; Mon, 14 Apr 2003 14:33:54 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 14 Apr 2003 14:35:01 -0500 (CDT) 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 OAA23199 for ; Mon, 14 Apr 2003 14:34:49 -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 h3EJX2I11324 for ; Mon, 14 Apr 2003 15:33:02 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h3EJX2F29460; Mon, 14 Apr 2003 15:33:02 -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: <877k9y1x96.fsf@eris.void.at> (Andreas Fuchs's message of "Sun, 13 Apr 2003 10:56:01 +0000 (UTC)") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (usg-unix-v) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51432 I would suggest spam-report.el (considering that gnus-report.el is too generic, this is really a spam reporting package). Other spam reporting functions can go in it as needed. Also, we can add code to spam-report.el to make it usable by itself, so users without spam.el can still use it. How does the following (untested) code look? (defun spam-report-gmane (article) (when (string-match "^nntp+.*:gmane." gnus-newsgroup-name) (with-current-buffer nntp-server-buffer (gnus-message 6 "Reporting spam article %d to spam.gmane.org..." article) (gnus-request-head article gnus-newsgroup-name) (goto-char (point-min)) (when (re-search-forward "^X-Report-Spam: \\(http://.*\\)$" nil t) (let (file-name-handler-alist) (url-retrieve (match-string 1) (lambda () nil))))))) (defun spam-report-gmane-register-spam-routine () (spam-generic-register-routine spam-report-gmane nil)) I took out the article-no nicety because I changed things around, and print the article number instead - feel free to fix it. If you like this, I'll have spam.el load spam-report.el and provide a spam exit processor that will do the right thing - to be consistent with the rest of spam.el. I'm pretty sure we'll need to fix assumptions spam.el makes about the backend (spam-process-destination needs to be disabled, for instance), but overall I see no problem with this and I think it's a good idea. For those who aren't following the discussion, the upshot will be that you add a gmane spam exit processor to your gmane groups, and the processor will send the spam report automatically for the messages you have marked as spam in the summary buffer. Ted