From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67853 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Using spam.el to report spam to gmane Date: Mon, 08 Dec 2008 12:47:11 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86k5aaijww.fsf@lifelogs.com> References: <87wseepo1n.fsf@anzu.internal.golden-gryphon.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228762161 5258 80.91.229.12 (8 Dec 2008 18:49:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 18:49:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16300@lists.math.uh.edu Mon Dec 08 19:50:25 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9lAm-0002ni-T7 for ding-account@gmane.org; Mon, 08 Dec 2008 19:49:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1L9l98-0001vA-Vr; Mon, 08 Dec 2008 12:47:55 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1L9l97-0001ut-4J for ding@lists.math.uh.edu; Mon, 08 Dec 2008 12:47:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1L9l93-0005ny-AI for ding@lists.math.uh.edu; Mon, 08 Dec 2008 12:47:52 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1L9l9E-0006QY-00 for ; Mon, 08 Dec 2008 19:48:00 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L9l91-0003IH-0P for ding@gnus.org; Mon, 08 Dec 2008 18:47:47 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 18:47:46 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 18:47:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:RDyoERzlBQtIIwxdlUfAubT05OA= X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67853 Archived-At: On Fri, 05 Dec 2008 10:47:00 -0600 Manoj Srivastava wrote: MS> I added this to my gnusrc: MS> (setq gnus-spam-autodetect-methods MS> '( MS> (".*" . (spam-use-blacklist MS> spam-use-BBDB MS> ;;spam-use-bogofilter MS> spam-use-gmane-xref)) MS> )) ;default MS> (setq gnus-spam-autodetect '(("^nntp.*" . t) MS> ("^gmane\\." .t) MS> ("^nnml:\\(debian-.*\\)$" . t))) MS> (setq gnus-spam-process-newsgroups MS> '(("^nntp+news.gmane.org" ((spam spam-use-gmane))) MS> ("^gmane\\." ((gnus-group-spam-exit-processor-report-gmane))) MS> (".*" nil) ;test MS> )) MS> ;; Since the above did not seem to do anything, try this MS> (add-to-list MS> 'gnus-parameters MS> '("^gmane\\." MS> (spam-autodetect-methods spam-use-gmane-xref spam-use-gmane spam-use-BBDB) MS> (spam-autodetect . t) MS> (spam-process (gnus-group-spam-exit-processor-report-gmane)) MS> )) MS> As you can see, thre is some duplication here, as I tried to get MS> this to work. It seems to properly recognize spam; ao the MS> spam-atuodetect part is right. But while sniffing my network traffic MS> while leaving a group where I had marked articles as spam, no report MS> was sent to gmane. MS> What am I doing wrong? Is the spam reporting deferred in some MS> way? Do I need to take additional action? First of all, turn up gnus-verbose to 10 and watch *Messages*. You'll see at least some indication that things are happening, if they are. Easier than sniffing network traffic, I hope. spam.el only does work when you exit the group so you were looking in the right time frame. Every Gnus parameter that spam.el uses has a test function. Those are created by macros in the parameter definition; here's what you need: (gnus-parameter-spam-process group) This should return a list looking like this (((ham spam-use-whitelist))) That's the easy way to test your settings, too. When you have things working, please let us know. I have not used the global gnus-parameters variable much, preferring to set topic/group parameters. For GMane reporting in particular, it's setup like so in spam.el: (spam-install-nocheck-backend 'spam-use-gmane 'spam-report-gmane-unregister-routine 'spam-report-gmane-register-routine 'spam-report-gmane-register-routine 'spam-report-gmane-unregister-routine) So you want the cell (spam spam-use-gmane) in your parameter list above. Ted