Gnus development mailing list
 help / color / mirror / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: ding@gnus.org
Subject: Re: nnir-run-gmane search broken
Date: Wed, 08 Dec 2010 14:17:51 -0500	[thread overview]
Message-ID: <87d3pcf50g.fsf@fastmail.fm> (raw)
In-Reply-To: <87fwu9k9ck.fsf@andy.bu.edu>

Andrew Cohen <cohen@andy.bu.edu> writes:

> Ugh. Previously I just checked whether the server name had gmane in
> it. But this isn't great since someone might have the string "gmane"
> in their own server that isn't really news.gmane.org (why? I have no
> idea, but people are funny that way). So I thought it would be safer
> to test the 'nntp-address. But you don't have the address set, which
> is the cause of the failure.
>
> Several options here:
>
> 1. Require the presence of 'nntp-address in the server definition (and
>    nnir-run-gmane could warn if this variable is not present and suggest
>    adding it). This is probably the "right" solution, but requires
>    work on the part of the user. 

And I think the manual (not to mention many .gnus files) would need to
be updated, since it offers examples of the short method:

(setq gnus-select-method '(nntp "news.somewhere.edu"))

(info "(gnus) Finding the News")
>
> 3. A compromise: go back to the crappy test of gmane in the server
>    name. Most of the time this will DTRT except when a user has the
>    string "gmane" in some server that isn't really news.gmane.org (or
>    snews.gmane.org). This has the defects of 2, but only in rare
>    cases.

Could we simply check whether the nntp-address is defined? If so, then
the nntp-address must match "gmane.org$"; if not, then the server name
should match "gmane.org$". These are effectively the same test, since in
the shorter method of defining the server the name *is* the address. In
other words, if one uses a "nickname" (supergmane, gmaneman, etc.) for
some other nntp server, then one must define an nntp-address;
conversely, if one does not define an nntp-address, then the name of the
server has to be the full address. In either case, you are testing
against the address instead of some arbitrary name and thus can enforce
the stricter match ("gmane.org$").

Another issue here: I believe one can currently access the complete
gmane hierarchy via news.gwene.org.

Best,
Matt




  reply	other threads:[~2010-12-08 19:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07  4:08 Matt Lundin
2010-12-07 10:09 ` Robert Pluim
2010-12-07 13:20   ` Andrew Cohen
2010-12-08 19:17     ` Matt Lundin [this message]
2010-12-08 19:27       ` Matt Lundin
2010-12-10 15:01         ` Matt Lundin

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=87d3pcf50g.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=ding@gnus.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).