Gnus development mailing list
 help / color / mirror / Atom feed
From: Jon Ericson <Jon.Ericson@jpl.nasa.gov>
Subject: Re: How many people mark spam in gmane groups?
Date: Mon, 28 Apr 2003 11:36:43 -0700	[thread overview]
Message-ID: <871xzmqxj8.fsf@jpl.nasa.gov> (raw)
In-Reply-To: <m3ist0txno.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Jon Ericson <Jon.Ericson@jpl.nasa.gov> writes:
>
>> I just sent a message that reports that spam-report.el works, but I
>> might have spoken too soon.  I used gmane.test to mark three messages
>> as spam.  When I quit the summary buffer the messages from spam-report
>> showed all three message numbers were reported to Gmane.  But the
>> Gmane approval page showed only the last article reported three times.
>
> Hm...  perhaps the changes I made weren't foolproof, anyway.
>
> Do you have a way to reproduce this by, er, more reproducible means?
> For instance, three wgets fired off in sequence?

Ok.  Testing from Gnus shows that just two articles are enough to
cause the bug.  It seems something like this:

  wget http://spam.gmane.org/gmane.test:615 http://spam.gmane.org/gmane.test:625

does not trigger the bug.  Looks like Gmane is off the hook.

Then I went back to Gnus and used spam-report to mark those articles
as spam, saw a message about reporting 615 to Gmane, and when I looked
at http://gmane.org/approve.php I found that article 609 in that group
was reported as spam twice by me.

After setting spam-report-gmane-use-article-number to nil, the bug
disappears.  Here's the bit of code from spam-report.el that this
variable toggles:

	  (spam-report-url-ping "spam.gmane.org" 
		    (format "/%s:%d"
			    (gnus-group-real-name gnus-newsgroup-name)
			    (gnus-summary-article-number)))

I think that (gnus-summary-article-number) is the problem.  From help:

  `gnus-summary-article-number' is a compiled Lisp macro
    -- loaded from "gnus-sum"
  (gnus-summary-article-number)

  Documentation:
  The article number of the article on the current line.
  If there isn't an article number here, then we return the current
  article number.

This isn't really what we want in this case, since it will return the
same article number each time it's called.

Should that branch of code be eliminated?  The only reason given for
it is speed, which really doesn't seem to be a problem in the first
place.

Looks like I'm learning lisp in spite of myself. :)

Jon
-- 
  Everyone who does evil hates the light, and will not come into the
  light for fear that his deeds will be exposed.  But whoever lives by
  the truth comes into the light, so that it may be seen plainly that
  what he has done has been done through God."  -- John 3:20-21 (NIV)




  reply	other threads:[~2003-04-28 18:36 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
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 [this message]
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=871xzmqxj8.fsf@jpl.nasa.gov \
    --to=jon.ericson@jpl.nasa.gov \
    /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).