🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44363

Re: RFC 1036 Revision: General

#44363
From: Curt Welch
Date: Tue, 22 Feb 2000 00:00
121 lines
6105 bytes
jgreco@ns.sol.net (Joe Greco) wrote:
> In news.software.nntp article <20000221223546.221$E4@newsreader.com>,
> curt@kcwc.com (Curt Welch) wrote:
> :How about:
> :
> :>>> POST
> :<<< 340 <123@site.com>
> :>>> .
> :<<< 441 Empty article
> :
> :Followed by:
> :
> :>>> POST
> :<<< 340 <124@site.com>
> :>>> Message-ID: <123@site.com>
> :>>> bla bla bla
> :>>>
> :>>> .
> :<<< 240 <123@site.com>
> :
> :A bit crude, and I guess unless it was written into the spec, you
> :may never know if it would actually work (i.e using the id returned
> :by one post as the Message-ID in another.).
>
> It would be all right for me.  It would also allow an optimization where
> something that needs to assign a Message-ID could do
>
> >>> POST
> <<< 340 <1@isp.com>
> (client: process...process....process....)
> >>> article
> >>> bla bla bla
> >>> .
> <<< 240 <1@isp.com>

Yes, that's the way it was designed to be used (have you seen our other
messages on this subject today?).  There's a patch for INN to do just
that and I think someone say one of the lastest versions of INN does
it by default (i.e. tell you the message-id it's going to use if
you don't supply one).

> But this would be a client-side optimization.  Maybe this should in fact
> be the "right way" to do it...?

Yeah, I think it would make sense to get all clients to switch to
doing things that way.  i.e., either don't include the message-id: header
at all and just the let the server add it, or if the client needs (or
wants) to know the ID, then use the one supplied in the POST command from
the server.

> I don't really know enough cases where
> a client _needs_ the data to know if that's sufficient.  But _that_ seems
> like an elegant way to do it, and a client could take an exchange such as
>
> >>> POST
> <<< 340 Ok
>
> to mean that it is acceptable to generate its own Message-ID (which must
> then be honored by the server), or that the server may supply one if none
> is specified in the POSTed data.  This is real nice because it gives a
> nonambiguous indication to the client about what _will_ happen.

> Does that sound like a workable concept?  It covers all the permutations,
> I think.

Well, we want to offer the ID to clients so they can start using that
instead of having to make up their own.  But we are also willing to
let them supply their own.  So we don't want the fact that the 340 response
includes the ID to imply they can't make up their own, nor do we
want to to be foced to leave the ID off the 340 response just because
we are willing to let them overide our default.

> I really _do_ want to retain control over generated Message-ID's.  Among
> other things, I do front-end sanity checks to prevent Hipcrime-style
> cancel and supersedes attacks,

I haven't figured out what I'm going to do about limiting those.  But
I would tend to lean towards a solution where a user could only issue
a cancel/supersede for their own article -- and that would be determined
by looking at the article that was to be cancled.  I'd force the addition
of some extra header (like X-Trace:) to all posts so my server could tell
of the article to be canceled matched the user sending the cancel insteald
of forcing this info into the Message-ID.

> but I have to deal with the very
> legitimate case where a user posts <1@isp.com> and then issues a cancel
> immediately, but the cancel is posted via a different reader - meaning
> you can't just keep a simple database.

Not sure what you are saying there.

> One of the uses I have for the
> locally-generated Message-ID's is that I can then just reject a message
> containing a cancel or supersedes for something not containing the
> generated MID tail.  I do some other sanity checking, too, like
> monitoring all of Usenet for my MID tails, it helps to spot
> <cancel.XXXX@isp.com> if you have that consistent MID tail and you know
> the article didn't come from you.  Think: automatic notification of spam
> cancel activity against your users.  :-)

But if we all offered the ID on the 340 resonse, and we got most
newsreaders converted so they would use that, then for the most part,
we would get the benifit you talk about without having to force our
IDs on everyone. i.e., most articles from our servers would have "our"
format Message-ID on it so they would be easy to spot on Usenet.

> You _can_ work around all of this without rewriting, but it becomes
> rather more challenging and annoying, and in the multiple years I've been
> doing the rewrite thing, it's not been a problem.

Do you do anything to limit a user so they can only cancel their own
posts?  Or does your rewriting only allow you to block cancles to
articles outside of your own user base?  If you include the user
ID in the message-ID, I guess you could do that without having access
to the orginal article, but that just seems wrong to me.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000222030128.423$f9@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <951164470.927553@news.netscum.dk> <38b1e812$0$1400@news.execpc.com> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <20000222030128.423$f9@newsreader.com>
Subject: Re: RFC 1036 Revision: General
Date: Tue, 22 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <951164470.927553@news.netscum.dk> <38b1e812$0$1400@news.execpc.com> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
X-Deja-AN: 588299814
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.admin.misc,news.software.nntp,news.software.readers