Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: How many people mark spam in gmane groups?
Date: Mon, 14 Apr 2003 15:33:02 -0400	[thread overview]
Message-ID: <4nvfxgri1d.fsf@lockgroove.bwh.harvard.edu> (raw)
In-Reply-To: <877k9y1x96.fsf@eris.void.at> (Andreas Fuchs's message of "Sun, 13 Apr 2003 10:56:01 +0000 (UTC)")

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



  parent reply	other threads:[~2003-04-14 19:33 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
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 [this message]
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=4nvfxgri1d.fsf@lockgroove.bwh.harvard.edu \
    --to=tzz@lifelogs.com \
    /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).