From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51238 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: How many people mark spam in gmane groups? Date: Sun, 06 Apr 2003 01:16:15 +0200 Organization: private Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049586144 12466 80.91.224.249 (5 Apr 2003 23:42:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2003 23:42:24 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Sun Apr 06 01:42:22 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 191xIk-0003Ee-00 for ; Sun, 06 Apr 2003 01:42:22 +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 191xHv-0006Ga-00; Sat, 05 Apr 2003 17:41:31 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 05 Apr 2003 17:42:36 -0600 (CST) 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 RAA29212 for ; Sat, 5 Apr 2003 17:42:23 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 191xHF-00037s-00 for ; Sun, 06 Apr 2003 01:40:49 +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 191xHD-00037h-00 for ; Sun, 06 Apr 2003 01:40:47 +0200 Original-Lines: 58 Original-X-Complaints-To: usenet@main.gmane.org X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 On Wed, 02 Apr 2003, 4.uce.03.r.s@nurfuerspam.de wrote: >> On Wed, Apr 02 2003, Ted Stern wrote: [ Gmane / X-Report-Spam / X-Report-Unspam ] > [ code omitted ] >> >>> It would be nice if there were a single keystroke (say "$ R") to >>> report spam. >> >> I didn't use the above code very often, so I'm not sure if it works >> reliable. >> >> Should we add something like this to Gnus? Opinions? > > Although spam.el might be too heavyweight for something like this, a > spam/ham summary exit processor ("reporter"?) that can use the > X-Report-Spam header would work. Then the spam-marked messages could > be batch-processed as described above, then copied (not moved!) if > spam-process-destination is set for the newsgroup. > > This would require some changes to spam.el, since it has been used > only with mail groups, so it's not a trivial addition. I don't use spam.el yet (but I'm sure I will in the future, because it's certainly a very nice and necessary feature), so I don't know how the `*gmane-report-*spam' would fit in there. As you say that it's not trivial, it should be easier to put it in `gnus-sum.el'[1]. Another Gmane related command that I use often is "Browse current Gmane article using `browse-url'.". As I use leafnode, I don't have the same article numbers as news.gmane.org has, but I can (ab)use the X-Report-{Unspam,Spam} header for this: (defun rs-gnus-summary-gmane-browse-article () "Browse current Gmane article using `browse-url'." (interactive) (let* ((url (or (rs-gnus-summary-fetch-field "X-Report-Spam" t) (rs-gnus-summary-fetch-field "X-Report-Unspam")))) (if url (browse-url (gnus-replace-in-string (gnus-replace-in-string url "http://\\(un\\)?spam\\." "http://article.") ":\\([0-9]+\\)\\'" "/\\1"))))) For the `*gmane-report-*spam' commands, we could use similar key bindings as for the spam/ham reporting. Bye, Reiner. [1] If we add more Gmane related commands, it might be better to create a `gnus-gmane.el' file for this. But maybe such a file already exists on the disks of the Gmane author. ;-) -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/