🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
21 messages
21 total messages Started by Jeremy Sun, 07 Apr 2002 08:47
Binary posting update, and test code
#57971
Author: Jeremy
Date: Sun, 07 Apr 2002 08:47
17 lines
1352 bytes
I've updated my "Better way to post binaries" site.  Specifically, I have
replaced the "encodings" page with a preliminary spec of yEnc as a MIME
transfer-encoding.

  http://www.exit109.com/~jeremy/news/binaries/

Sample code is available implementing yEnc as a MIME encoding.  It works
with the Perl MIME-tools package.  I have posted binaries with it and was
able to decode them without incident with the current version of Thoth,
so backwards compatibility is preserved.

I also added a parameter to application/file-fragment to indicate the
total size of the reassembled file.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58006
Author: Joe Greco
Date: Mon, 08 Apr 2002 17:10
65 lines
4105 bytes
In news.software.nntp article <1018169279.730816@ok-corral.gunslinger.net>, Jeremy <jeremy@exit109.com> wrote:
:I've updated my "Better way to post binaries" site.  Specifically, I have
:replaced the "encodings" page with a preliminary spec of yEnc as a MIME
:transfer-encoding.
:
:  http://www.exit109.com/~jeremy/news/binaries/
:
:Sample code is available implementing yEnc as a MIME encoding.  It works
:with the Perl MIME-tools package.  I have posted binaries with it and was
:able to decode them without incident with the current version of Thoth,
:so backwards compatibility is preserved.
:
:I also added a parameter to application/file-fragment to indicate the
:total size of the reassembled file.

With respect to the following:

> A very small number of servers do not allow client-supplied message-ids. I
> am aware of two such servers, and at least one of them does
> not even inform the client of the message-id it has decided to use for
> the post (it just silently changes a client-supplied id). This is
> unfortunate behavior which servers should not engage in (for
> reasons which go way beyond this specification), but unless they change,
> those servers would simply be considered unsuitable for
> posting of images. Even more unfortunately, there is no way for a client to
> automatically know that a server is going to discard client-supplied ids.

We do local rewrites; it's a built-in Diablo feature.  It helps to protect
against cancel attacks and a variety of other BS.  It's a great feature
that has kept my servers Hipcrime-free.

With the agreed-upon standard for forced rewriting, it works something
like this:

200 reader0-nwblwi.news.sol.net NNRP Service Ready - news@ns.sol.net (posting ok).
POST
340 345 <3cb1cc30$0$80225$39de8f09@news.sol.net> (forced)
.   
441 Article has no body -- just headers

Now, the only tricky part for your case is that you're creating
cross-linked Message-ID's, so you need to know both "in advance".  I'd
say that opening a second channel to POST would be acceptable; you send
POST on both channels, and there's your MID's.  Then you generate the
posts and stuff 'em at the server.

You can even detect that you need to do this, because the server tells
you so, when you initiate the first POST.

Diablo provides the ID either way.  Modern versions of INN also provide 
a recommended ID, and presumably could be altered to force an ID if the
option doesn't exist.  So most modern servers appear to provide this for
the client.  There's no good reason to ignore it just because you do not
like the idea of rewrites.

If the server fails to provide an ID as part of the 340, then of course 
making up one makes sense, and I don't mind saying that servers which
rewrite without letting the client know what the ID is can simply lose.

So your paragraph above is heinously wrong.  :-)  It's technically possible
and hardly difficult to do, so a standard would be well-advised to support
this, since a de facto method for doing it already exists.

... JG
Re: Binary posting update, and test code
#58016
Author: Jeremy
Date: Tue, 09 Apr 2002 00:42
79 lines
4195 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

> With respect to the following:
> 
>> A very small number of servers do not allow client-supplied
>> message-ids. I am aware of two such servers, and at least one of them
>> does not even inform the client of the message-id it has decided to
>> use for the post (it just silently changes a client-supplied id). This
>> is unfortunate behavior which servers should not engage in (for
>> reasons which go way beyond this specification), but unless they
>> change, those servers would simply be considered unsuitable for
>> posting of images. Even more unfortunately, there is no way for a
>> client to automatically know that a server is going to discard
>> client-supplied ids.
> 
> We do local rewrites; it's a built-in Diablo feature.  It helps to protect
> against cancel attacks and a variety of other BS.  It's a great feature
> that has kept my servers Hipcrime-free.

As I've said before, I'm not worried about Joe Greco doing this; I'm
more concerned about Joe Schmoe saying "well, Joe Greco does it, and
he knows his stuff, so it must be a good idea."  And it is most
certainly not a good idea.

That it causes headaches for things like this is only one reason it's
a bad idea.

> With the agreed-upon standard for forced rewriting, it works something
> like this:
> 
> 200 reader0-nwblwi.news.sol.net NNRP Service Ready - news@ns.sol.net
> (posting ok).
> POST
> 340 345 <3cb1cc30$0$80225$39de8f09@news.sol.net> (forced)

Well, for values of "agreed-upon" meaning "agreed by you". :)
Unfortunately, there is no way within the protocol, either standardized
or in best-current-practice, to inform the client that it won't be
allowed to supply a message-id.  Your POST reply says "forced", but
the one at Airnews doesn't -- and doesn't even give the intended
message-id, either.

> Now, the only tricky part for your case is that you're creating
> cross-linked Message-ID's, so you need to know both "in advance".  I'd
> say that opening a second channel to POST would be acceptable; you send
> POST on both channels, and there's your MID's.  Then you generate the
> posts and stuff 'em at the server.

That's a good workaround, I'll stick it somewhere on my page.

> You can even detect that you need to do this, because the server tells
> you so, when you initiate the first POST.

Yours does... Airnews doesn't.

> Diablo provides the ID either way.  Modern versions of INN also provide 
> a recommended ID, and presumably could be altered to force an ID if the
> option doesn't exist.  So most modern servers appear to provide this for
> the client.  There's no good reason to ignore it just because you do not
> like the idea of rewrites.

I would recommend that a client Pay Attention to the recommended ID, but
I don't think it can be required.

> If the server fails to provide an ID as part of the 340, then of course 
> making up one makes sense, and I don't mind saying that servers which
> rewrite without letting the client know what the ID is can simply lose.

Yes.

> So your paragraph above is heinously wrong.  :-)  It's technically possible
> and hardly difficult to do, so a standard would be well-advised to support
> this, since a de facto method for doing it already exists.

I'll include it.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58019
Author: Andrew - Supernews
Date: Tue, 09 Apr 2002 01:32
15 lines
1582 bytes
In article <1018312952.449586@ok-corral.gunslinger.net>, Jeremy wrote:
> Well, for values of "agreed-upon" meaning "agreed by you". :)
> Unfortunately, there is no way within the protocol, either standardized
> or in best-current-practice, to inform the client that it won't be
> allowed to supply a message-id.  Your POST reply says "forced", but
> the one at Airnews doesn't -- and doesn't even give the intended
> message-id, either.

as I understand it, the Airnews one _can't_ give the intended message-id
because it's computed from a hash of the body.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Binary posting update, and test code
#58022
Author: J.B. Moreno
Date: Tue, 09 Apr 2002 04:34
18 lines
1833 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:

> Jeremy wrote:
> > Well, for values of "agreed-upon" meaning "agreed by you". :)
> > Unfortunately, there is no way within the protocol, either standardized
> > or in best-current-practice, to inform the client that it won't be
> > allowed to supply a message-id.  Your POST reply says "forced", but
> > the one at Airnews doesn't -- and doesn't even give the intended
> > message-id, either.
> 
> as I understand it, the Airnews one _can't_ give the intended message-id
> because it's computed from a hash of the body.

Does it even include the id as part of the 240 response code?

-- 
J.B. Moreno
Re: Binary posting update, and test code
#58032
Author: Joe Greco
Date: Tue, 09 Apr 2002 15:46
111 lines
6227 bytes
In news.software.nntp article <1018312952.449586@ok-corral.gunslinger.net>, Jeremy <jeremy@exit109.com> wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:
:> With respect to the following:
:> 
:>> A very small number of servers do not allow client-supplied
:>> message-ids. I am aware of two such servers, and at least one of them
:>> does not even inform the client of the message-id it has decided to
:>> use for the post (it just silently changes a client-supplied id). This
:>> is unfortunate behavior which servers should not engage in (for
:>> reasons which go way beyond this specification), but unless they
:>> change, those servers would simply be considered unsuitable for
:>> posting of images. Even more unfortunately, there is no way for a
:>> client to automatically know that a server is going to discard
:>> client-supplied ids.
:> 
:> We do local rewrites; it's a built-in Diablo feature.  It helps to protect
:> against cancel attacks and a variety of other BS.  It's a great feature
:> that has kept my servers Hipcrime-free.
:
:As I've said before, I'm not worried about Joe Greco doing this; I'm
:more concerned about Joe Schmoe saying "well, Joe Greco does it, and
:he knows his stuff, so it must be a good idea."  And it is most
:certainly not a good idea.
:
:That it causes headaches for things like this is only one reason it's
:a bad idea.
:
:> With the agreed-upon standard for forced rewriting, it works something
:> like this:
:> 
:> 200 reader0-nwblwi.news.sol.net NNRP Service Ready - news@ns.sol.net
:> (posting ok).
:> POST
:> 340 345 <3cb1cc30$0$80225$39de8f09@news.sol.net> (forced)
:
:Well, for values of "agreed-upon" meaning "agreed by you". :)

No, it was debated at some length here, and the conclusion was that if
it was going to be done, at least it should be done in a detectable way
that the client could learn.  I don't recall *ANYONE* arguing the opposite
point, so it's agreed on by a heck of a lot more than just me.

:Unfortunately, there is no way within the protocol, either standardized
:or in best-current-practice, to inform the client that it won't be
:allowed to supply a message-id.  Your POST reply says "forced", but
:the one at Airnews doesn't -- and doesn't even give the intended
:message-id, either.

I'd say that that's broken, possibly because Airnews has been doing
rewrites forever, and perhaps they didn't participate in the discussion.
The code in Diablo is a /result/ of the discussion, on the other hand.
I suspect the code in INN which puts the MID in the 340 may be a result
of it as well.

I'm no fan of unnecessary brokenness, and in this case it seems clear
that there's a relatively trivial workaround.

:> Now, the only tricky part for your case is that you're creating
:> cross-linked Message-ID's, so you need to know both "in advance".  I'd
:> say that opening a second channel to POST would be acceptable; you send
:> POST on both channels, and there's your MID's.  Then you generate the
:> posts and stuff 'em at the server.
:
:That's a good workaround, I'll stick it somewhere on my page.
:
:> You can even detect that you need to do this, because the server tells
:> you so, when you initiate the first POST.
:
:Yours does... Airnews doesn't.

I don't think you need to pay attention to the "(forced)" tag; just use 
the supplied MID, if it's supplied.  Pretty darn easy, although in this
case I agree that it requires a second channel opened.

Most of the Diablo servers and many of the INN servers on the planet do
this; Airnews doesn't.  I don't know about the Highwind stuff, but being 
owned by a USP, I expect they'd be persuaded to fall into line. 

:> Diablo provides the ID either way.  Modern versions of INN also provide 
:> a recommended ID, and presumably could be altered to force an ID if the
:> option doesn't exist.  So most modern servers appear to provide this for
:> the client.  There's no good reason to ignore it just because you do not
:> like the idea of rewrites.
:
:I would recommend that a client Pay Attention to the recommended ID, but
:I don't think it can be required.

There seem to be relatively few cases where the client actually cares
whether one identifier or another is being used; in both cases, they are
identifiers, can be recorded, and whether you generate the MID via a call
to "generate_random_mid()" or "ask_server_for_mid()", you end up with an
MID.  One of the specific legitimate cases is "<cancel.", where a standard 
requires the use of a specific MID.

:> If the server fails to provide an ID as part of the 340, then of course 
:> making up one makes sense, and I don't mind saying that servers which
:> rewrite without letting the client know what the ID is can simply lose.
:
:Yes.
:
:> So your paragraph above is heinously wrong.  :-)  It's technically possible
:> and hardly difficult to do, so a standard would be well-advised to support
:> this, since a de facto method for doing it already exists.
:
:I'll include it.

Thank you :-)

... JG
Re: Binary posting update, and test code
#58033
Author: Joe Greco
Date: Tue, 09 Apr 2002 15:48
22 lines
2120 bytes
In news.software.nntp article <slrnab4h4r.23sv.andrew+nonews@trinity.supernews.net>, andrew@supernews.com wrote:
:In article <1018312952.449586@ok-corral.gunslinger.net>, Jeremy wrote:
:> Well, for values of "agreed-upon" meaning "agreed by you". :)
:> Unfortunately, there is no way within the protocol, either standardized
:> or in best-current-practice, to inform the client that it won't be
:> allowed to supply a message-id.  Your POST reply says "forced", but
:> the one at Airnews doesn't -- and doesn't even give the intended
:> message-id, either.
:
:as I understand it, the Airnews one _can't_ give the intended message-id
:because it's computed from a hash of the body.

Whoa, that's both interesting and weird.

Is that intended as some sort of primitive anti-spam-post-filtering
measure, or is there some other purpose behind it, such as verifying the
authenticity of posts for abuse complaints?

Anyone know?

... JG
Re: Binary posting update, and test code
#58042
Author: Jeremy
Date: Tue, 09 Apr 2002 17:08
12 lines
1223 bytes
J.B. Moreno <planb@newsreaders.com> wrote:

>> as I understand it, the Airnews one _can't_ give the intended message-id
>> because it's computed from a hash of the body.
> 
> Does it even include the id as part of the 240 response code?

No, it doesn't.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58036
Author: Jeremy
Date: Tue, 09 Apr 2002 17:08
15 lines
1270 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

>> as I understand it, the Airnews one _can't_ give the intended
>> message-id because it's computed from a hash of the body.
> 
> Whoa, that's both interesting and weird.
> 
> Is that intended as some sort of primitive anti-spam-post-filtering
> measure,

Yes.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58037
Author: Jeremy
Date: Tue, 09 Apr 2002 17:13
27 lines
2201 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

> I don't think you need to pay attention to the "(forced)" tag; just use 
> the supplied MID, if it's supplied.  Pretty darn easy, although in this
> case I agree that it requires a second channel opened.

Yes, but the problem is that there isn't any way for the client to actually
determine whether the message-id is going to be forced, or if the one
supplied in the POST response is just a suggestion (as from INN).  It would
really have to be a user-supplied setting.  "Check this box if you're using
Airnews or sol.net".

> There seem to be relatively few cases where the client actually cares
> whether one identifier or another is being used; in both cases, they are
> identifiers, can be recorded, and whether you generate the MID via a call
> to "generate_random_mid()" or "ask_server_for_mid()", you end up with an
> MID.

But ask_server_for_mid() has to send the POST command to the server in
order to get the id, which the client may not want to do at that point.
There is no NNTP command for "give me a few message-ids to use a little
later on".  So it's not exactly convenient, and (if writing a client) I
wouldn't want to have to use that workaround unless absolutely necessary.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58044
Author: Russell Vincent
Date: Tue, 09 Apr 2002 18:12
25 lines
2132 bytes
Jeremy <jeremy@exit109.com> wrote:
> Joe Greco <jgreco@ns.sol.net> wrote:
>> I don't think you need to pay attention to the "(forced)" tag; just use 
>> the supplied MID, if it's supplied.  Pretty darn easy, although in this
>> case I agree that it requires a second channel opened.

> Yes, but the problem is that there isn't any way for the client to actually
> determine whether the message-id is going to be forced, or if the one
> supplied in the POST response is just a suggestion (as from INN).  It would
> really have to be a user-supplied setting.  "Check this box if you're using
> Airnews or sol.net".

It's what the second result code (just before the Message-ID) is
supposed to indicate.

340 340 <Message-ID> (desired)
340 345 <Message-ID> (forced)

The first one (desired) is the default in Diablo and the latter is
only enabled with a compile-time option. In the first case, the
Message-ID shown is used if the client doesn't supply one.

 -Russell

Re: Binary posting update, and test code
#58046
Author: Jeremy
Date: Tue, 09 Apr 2002 18:52
25 lines
1827 bytes
Russell Vincent  <rv@bad.openusenet.org.invalid> wrote:

>> Yes, but the problem is that there isn't any way for the client to
>> actually determine whether the message-id is going to be forced, or if
>> the one supplied in the POST response is just a suggestion (as from
>> INN).  It would really have to be a user-supplied setting.  "Check
>> this box if you're using Airnews or sol.net".
>
> It's what the second result code (just before the Message-ID) is
> supposed to indicate.
> 
> 340 340 <Message-ID> (desired)
> 340 345 <Message-ID> (forced)

But INN doesn't do this.  It just goes

340 Ok, recommended ID <message-id>

So you're reduced to scanning the result line for something that looks
like a message-id, and then not knowing whether it's going to be forced
or not.  I like your way, but it can't be counted on.

-- 
Jeremy  |  jeremy@exit109.com
Re: Binary posting update, and test code
#58053
Author: Russell Vincent
Date: Tue, 09 Apr 2002 22:43
18 lines
1681 bytes
Jeremy <jeremy@exit109.com> wrote:
>> 340 340 <Message-ID> (desired)
>> 340 345 <Message-ID> (forced)

> But INN doesn't do this.  It just goes

> 340 Ok, recommended ID <message-id>

> So you're reduced to scanning the result line for something that looks
> like a message-id, and then not knowing whether it's going to be forced
> or not.  I like your way, but it can't be counted on.

An even better method would be a different response code (like 341),
but that is likely to break many clients.

 -Russell

Re: Binary posting update, and test code
#58056
Author: Russ Allbery
Date: Tue, 09 Apr 2002 23:44
23 lines
2108 bytes
Russell Vincent <rv@bad.openusenet.org.invalid> writes:
> Jeremy <jeremy@exit109.com> wrote:

>> But INN doesn't do this.  It just goes

>> 340 Ok, recommended ID <message-id>

>> So you're reduced to scanning the result line for something that looks
>> like a message-id, and then not knowing whether it's going to be forced
>> or not.  I like your way, but it can't be counted on.

> An even better method would be a different response code (like 341),
> but that is likely to break many clients.

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.

-- 
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.
Re: Binary posting update, and test code
#58138
Author: Joe Greco
Date: Fri, 12 Apr 2002 08:05
69 lines
4120 bytes
In news.software.nntp article <yladsce8t2.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote:
:Russell Vincent <rv@bad.openusenet.org.invalid> writes:
:> Jeremy <jeremy@exit109.com> wrote:
:
:>> But INN doesn't do this.  It just goes
:
:>> 340 Ok, recommended ID <message-id>
:
:>> So you're reduced to scanning the result line for something that looks
:>> like a message-id, and then not knowing whether it's going to be forced
:>> or not.  I like your way, but it can't be counted on.
:
:> An even better method would be a different response code (like 341),
:> but that is likely to break many clients.
:
: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?

Here's mine:

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.

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.

That opens up sort of a third option for POST.

The first is the "Recommended" MID in the 340.

The second is "I'm gonna rewrite" MID.  The caveat here is that if you say
you're going to rewrite, you actually should.  But this requires the use of
the two-POST workaround I suggested.

The new one would be "I may rewrite your MID", with the intention that if
it wasn't provided by the server (somehow), that it will get rewritten.

So you have the option to ask for some MID's from the server, in advance.

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.

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.

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'?

Comments solicited.

... JG
Requesting message IDs from the server (was: Binary posting...)
#58913
Author: Russ Allbery
Date: Tue, 21 May 2002 00:32
96 lines
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.
Re: Requesting message IDs from the server (was: Binary posting...)
#58919
Author: Jeremy
Date: Tue, 21 May 2002 05:11
12 lines
1319 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> 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.

Requiring them to be used in the same session would break newsreaders
that open a new connection to do a POST.

-- 
Jeremy  |  jeremy@exit109.com
Re: Requesting message IDs from the server (was: Binary posting...)
#58920
Author: Russ Allbery
Date: Tue, 21 May 2002 05:24
21 lines
2020 bytes
Jeremy <jeremy@exit109.com> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> 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.

> Requiring them to be used in the same session would break newsreaders
> that open a new connection to do a POST.

Well, it wouldn't *break* them.  They could do their XGETMIDS command over
in the new connection to grab a message ID (or just not use that command).
It might be less convenient for them, but I'm not sure that's really a
problem.

-- 
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.
Re: Requesting message IDs from the server (was: Binary posting...)
#58924
Author: Jeremy
Date: Tue, 21 May 2002 17:33
26 lines
2128 bytes
Russ Allbery  <rra@stanford.edu> wrote:

>> Requiring them to be used in the same session would break newsreaders
>> that open a new connection to do a POST.
> 
> Well, it wouldn't *break* them.  They could do their XGETMIDS command over
> in the new connection to grab a message ID (or just not use that command).
> It might be less convenient for them, but I'm not sure that's really a
> problem.

But you're breaking backwards compatibility.  Some newsreaders hand off
posts to something like inews, for example, which would then need to be
modified to ask for an id before posting, and since it's an outside
program, it will also need to be modified to return the message-id, and
the main newsreader will need to be modified to grab the returned id.

I don't think it's worth it to break existing code that way.  You
could assign IDs per-user rather than per-connection, but that will
fall down when auth isn't used (you can't even count on the post
coming from the same IP as the main newsreader connection, due to
possible proxies or DHCP dialups that time out and reopen, ending up
with a new IP address.

-- 
Jeremy  |  jeremy@exit109.com
Re: Requesting message IDs from the server (was: Binary posting...)
#58925
Author: Russ Allbery
Date: Tue, 21 May 2002 20:00
27 lines
2414 bytes
Jeremy <jeremy@exit109.com> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> Well, it wouldn't *break* them.  They could do their XGETMIDS command
>> over in the new connection to grab a message ID (or just not use that
>> command).  It might be less convenient for them, but I'm not sure
>> that's really a problem.

> But you're breaking backwards compatibility.

It's completely impossible to break backwards compatibility by simply
adding a new command.  :)  I think I know what you're getting at, but the
term "backward compatibility" is not the correct description.

I think what you're saying is that some models for posting which currently
work could not easily take advantage of the ability to get a message ID
beforehand without changing their posting model.  This is true.  I'm not
sure I understand why anyone should care.  Surely they can keep posting
the way that they are now?  That means their message ID may occasionally
get overridden, but that happens now.

-- 
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.
Re: Requesting message IDs from the server (was: Binary posting...)
#58931
Author: Kjetil Torgrim Homme
Date: Wed, 22 May 2002 01:52
26 lines
2449 bytes
[Russ Allbery]:
>
>   Joe Greco <jgreco@ns.sol.net> writes:
>   > 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.

I think that it would be good if the server allowed additions in the
LHS (or RHS for that matter).  e.g., a value like
"<dq7alx3-<>@usenet.com>" could signify that the client can add
anything in the place of "<>".  I'd insert "kjetilho" and score up
responses to all my articles without keeping a database.

-- 
Kjetil T.		your computer can help researchers understand how
			proteins work.    http://folding.stanford.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads