Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: How many people mark spam in gmane groups?
Date: Sun, 06 Apr 2003 01:16:15 +0200	[thread overview]
Message-ID: <v9d6k0eds0.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m33ckx3wtr.fsf@heechee.beld.net>

On Sat, Apr 05 2003, Ted Zlatanov wrote:

> 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/




  reply	other threads:[~2003-04-05 23:16 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-02 15:59 Ted Stern
2003-04-02 16:54 ` Reiner Steib
2003-04-02 20:58   ` Jon Ericson
2003-04-05 13:20   ` Ted Zlatanov
2003-04-05 23:16     ` Reiner Steib [this message]
2003-04-07 20:49       ` Ted Zlatanov
2003-04-12 15:50         ` Andreas Fuchs
2003-04-12 20:58           ` Lars Magne Ingebrigtsen
2003-04-13 10:56             ` Andreas Fuchs
2003-04-13 13:31               ` Lars Magne Ingebrigtsen
2003-04-14 19:33               ` Ted Zlatanov
2003-04-14 21:03                 ` Andreas Fuchs
2003-04-14 21:05                 ` Reiner Steib
2003-04-14 23:32                   ` Ted Zlatanov
2003-04-15 14:24                     ` Reiner Steib
2003-04-15  5:34                   ` Steinar Bang
2003-04-15 14:23                     ` Reiner Steib
2003-04-15 19:33                     ` Ted Zlatanov
2003-04-15 21:42                       ` Andreas Fuchs
2003-04-15 22:31                         ` Lars Magne Ingebrigtsen
2003-04-16  6:02                           ` Andreas Fuchs
2003-04-16 16:33         ` Ted Zlatanov
2003-04-26  1:40           ` Jon Ericson
2003-04-29 17:19             ` Ted Zlatanov
2003-04-29 17:48               ` Jon Ericson
2003-04-29 18:04                 ` Ted Zlatanov
2003-04-29 19:48                   ` Jon Ericson
2003-04-30 18:28                     ` Ted Zlatanov
2003-04-30 21:37                       ` Jon Ericson
2003-05-01 17:34                         ` Ted Zlatanov
2003-04-26  2:49           ` Jon Ericson
2003-04-27  3:41             ` Lars Magne Ingebrigtsen
2003-04-28 18:36               ` Jon Ericson
2003-04-29 17:12                 ` Ted Zlatanov
2003-04-30 18:37                   ` Jon Ericson
2003-04-02 19:32 ` Raja R Harinath
2003-04-13  1:31   ` Daniel Néri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9d6k0eds0.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).