From: nbareil+gmane@plop.dyndns.org (Nicolas Bareil)
Subject: Reporting spam for gmane.org
Date: Thu, 28 Aug 2003 20:32:35 +0200 [thread overview]
Message-ID: <87ad9tske4.fsf@shibby.plop.dyndns.org> (raw)
Hi,
Background : I have a personnal news server which retrieve feeds from
different servers (As news.gmane.org).
I use spam-report.el to mark article as spam for gmane groups. So this
function is called :
,----
| (defun spam-report-gmane (article)
| "Report an article as spam through Gmane"
| (interactive "nEnter the article number: ")
| (when (and gnus-newsgroup-name
| (or (null spam-report-gmane-regex)
| (string-match spam-report-gmane-regex gnus-newsgroup-name)))
| (gnus-message 6 "Reporting spam article %d to spam.gmane.org..." article)
| (if spam-report-gmane-use-article-number
| (spam-report-url-ping "spam.gmane.org"
| (format "/%s:%d"
| (gnus-group-real-name gnus-newsgroup-name)
| article))
| (with-current-buffer nntp-server-buffer
| (gnus-request-head article gnus-newsgroup-name)
| (goto-char (point-min))
| (if (re-search-forward spam-report-gmane-spam-header nil t)
| (let* ((host (match-string 1))
| (report (match-string 2))
| (url (format "http://%s%s" host report)))
| (gnus-message 10 "Reporting spam through URL %s..." url)
| (spam-report-url-ping host report))
| (gnus-message 10 "Could not find X-Report-Spam in article %d..."
| article))))))
`----
By default, spam-report-gmane-use-article-number doesn't exist so
spam-report.el tries to get the article number (On *my* news server) and
contact spam.gmane.org.
But the article number is different between nntp://news.gmane.org/ and
nntp://my.news.server/ so legitimate article are marked as spam.
Could we just change the default setting, or write a warning in the Gnus
manual ?
PS : Personnaly, I've just put this in my ~/.gnus :
(setq spam-report-gmane-use-article-number nil)
--
BOFH excuse #309:
firewall needs cooling
next reply other threads:[~2003-08-28 18:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 18:32 Nicolas Bareil [this message]
2003-08-29 15:34 ` Ted Zlatanov
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=87ad9tske4.fsf@shibby.plop.dyndns.org \
--to=nbareil+gmane@plop.dyndns.org \
/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).