Article View: news.software.nntp
Article #58913Requesting message IDs from the server (was: Binary posting...)
From: Russ Allbery
Date: Tue, 21 May 2002 00:32
Date: Tue, 21 May 2002 00:32
96 lines
5779 bytes
5779 bytes
Sorry it took me a while to get back to this.
Joe Greco <jgreco@ns.sol.net> writes:
> In news.software.nntp, Russ Allbery <rra@stanford.edu> wrote:
>> I still think that an extension that allows you to ask the server for a
>> message ID that you can then use is the best way of dealing with this.
> That would be fine, if you're willing to put it in INN, I'm willing to
> put it in Diablo. Got a specific idea?
Mostly your XGETMIDS idea that you mention below. It seems the cleanest
to me, it's relatively easy to spec, and it doesn't involve putting
formatted data into the return value of a command that currently doesn't
have formatted data.
I'd be happy to put something like that into INN. I don't have a lot of
time to work on it right now, but I'm hopeful of having more time to work
on it and other things like that later this summer.
> In the case where an admin does rewrites, I've always observed it to be
> about wanting the site name tag in the Message-ID. For example, if my
> MID's are always <*@news.sol.net>, I know that cancels must also bear
> that pattern, otherwise I'm probably getting HipCrime'd. Similarly, I
> can tell abuse that posts not in that form, and not containing our
> X-Trace line, didn't originate here. Etc.
Yeah, in general I think rewriting is bad, but it does help a lot with
things like that. And duplicating that behavior is much more difficult
(it requires keeping a local database of all posts, for example, which can
be a bit tricky if one is duplicating ones servers across multiple
machines).
> I'm open to counterexamples or other uses, but what this really means is
> that I don't care what the LHS is, as long as the RHS is what I want it
> to be.
Well, the primary counter-example would be Airnews, which puts some sort
of hash in the LHS, but I never did understand exactly why they were doing
that.
> Anyways, I don't really see a need for two different options. Here's what
> I suggest:
> During the process of a normal POST, a client should examine the 340
> result header for a Message-ID. If one is found, it should be used, or
> the POST data should not submit a Message-ID, and allow the server to
> insert it. Clients that do not follow this guideline may find their
> Message-ID's rewritten by the remote server in some cases.
This one I don't like all that much, since putting data in the return of
POST that one has to parse is a change to the existing protocol and
requiring that clients do something with that in essence potentially
requires an upgrade of all clients. But the negative consequence is
basically what we have *now*, so....
Although it may encourage more people who don't know what they're doing to
rewrite message IDs, which I think is a bad thing. I trust you to do this
properly, but you're on a fairly short list of people I can say that
about. :)
> During the process of a multipart POST, a client may ask for preassigned
> Message-ID's through the use of "XGETMIDS <n>" (or whatever). This
> command will return "n" Message-ID's in list format, which will be
> accepted by the server during POST commands.
This I like, though, and I don't see any reason not to add something like
this. In other words, it seems obviously useful (the client won't have to
try to figure out some valid RHS, for example, but can still note the
message IDs that it posted with for later scoring purposes or the like)
and I don't see any real drawbacks. The NNTP server has to have a message
ID generation routine in it anyway, and as long as there's some way to say
"no, sorry, n is too high," it seems like a straightforward extension.
> Questions: would the POST commands need to be in the same session
> (i.e. does the server actually retain the list or does it just
> pattern-match) and if it retains the list, should there be a limit to
> 'n'?
Well, using the new extension mechanism, you'd probably advertise the
extension as:
XGETMIDS n
where n is the maximum that you support or 0 or something if you don't
impose a limit, and then have the standard recommend that one supports at
least 10 or so. And yes, I do think it should be in the same session;
that way, you can include encrypted session data or some other such thing
into the message IDs if you want.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylu1p2qr1q.fsf_-_@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<1018169279.730816@ok-corral.gunslinger.net> <1018378368.332253@ok-corral.gunslinger.net> <78Ks8.17233$d45.2163412@monolith.news.easynet.net> <yladsce8t2.fsf@windlord.stanford.edu> <3cb6953e$0$80228$39de8f09@news.sol.net>Show Full Headers
Complete Article Headers
Message-ID: <ylu1p2qr1q.fsf_-_@windlord.stanford.edu> Subject: Requesting message IDs from the server (was: Binary posting...) Date: Mon, 20 May 2002 17:32:17 -0700 From: Russ Allbery <rra@stanford.edu> References: <1018169279.730816@ok-corral.gunslinger.net> <1018378368.332253@ok-corral.gunslinger.net> <78Ks8.17233$d45.2163412@monolith.news.easynet.net> <yladsce8t2.fsf@windlord.stanford.edu> <3cb6953e$0$80228$39de8f09@news.sol.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 95 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1021941137 19520 171.64.13.23 (21 May 2002 00:32:17 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:jhHQhC95VH17STJU6eH+rOYbRyA=