From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51373 Path: main.gmane.org!not-for-mail From: Andreas Fuchs Newsgroups: gmane.emacs.gnus.general Subject: Re: How many people mark spam in gmane groups? Date: Sun, 13 Apr 2003 10:56:01 +0000 (UTC) Sender: owner-ding@hpc.uh.edu Message-ID: <877k9y1x96.fsf@eris.void.at> References: <4n4r5aowwm.fsf@chubby.bwh.harvard.edu> <87llyfsoi6.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 1050231435 9315 80.91.224.249 (13 Apr 2003 10:57:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2003 10:57:15 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Sun Apr 13 12:57:13 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 194fAf-0002Q5-00 for ; Sun, 13 Apr 2003 12:57:13 +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 194fAP-0007MQ-00; Sun, 13 Apr 2003 05:56:57 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 13 Apr 2003 05:58:03 -0500 (CDT) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id FAA19091 for ; Sun, 13 Apr 2003 05:57:50 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 194f9V-0002Na-00 for ; Sun, 13 Apr 2003 12:56:01 +0200 Mail-Followup-To: ding@hpc.uh.edu X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 194f9V-0002NR-00 for ; Sun, 13 Apr 2003 12:56:01 +0200 Original-Lines: 29 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never X-Url: http://asf.void.at/ X-Attribution: asf X-Face: 3*3w/y?I6|`'CYW7F~m0]U1)L\|[x"?/V6^;s3FU#q|F'AL(3C?$eslHvAmR:KjT"&LZeqM 0wMS%HM` Cancel-Lock: sha1:wnol6XaqR9M141gRn16eWcMMSAI= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51373 On 2003-04-12, Lars Magne Ingebrigtsen wrote: > Or perhaps a gnus-report.el. Hm, a spam report interface for gnus would really be nice. I guess we all have some kind of spamcop-reporting setup (used more or less regularly), no? Another thing: I noticed that my code breaks when tramp is active. Better use this mutation of it: (defun gnus-gmane-spam-prepare-exit () "Process articles marked as spam in gmane groups." (let ((article-no 0)) (when (string-match "^nntp+.*:gmane." gnus-newsgroup-name) (spam-generic-register-routine (lambda (article) (with-current-buffer nntp-server-buffer (gnus-message 6 "Reporting spam nr. %s to spam.gmane.org..." (incf article-no)) (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)))))) 'identity)))) Have fun, -- Andreas Fuchs, , asf@jabber.at, antifuchs irc.freenode.net's #emacs - online emacs advice from IRC addicts