πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80434

Re: Questions about datastream answers (especially to TAKETHIS)

#80434
From: D. Stussy
Date: Sun, 22 Mar 2009 20:21
136 lines
5633 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gq583d$nj5$1@news.trigofacile.com...
> >> The CHECK/TAKETHIS client is not necessarily all broken:  it could
send
> >> a message-ID whose length is 300 (> 250).  How are such articles
> >> supposed to be propagated?
> >
> > They're not.  Such messages are invalid Usenet messages.  USEFOR
restricts
> > the length of the Message-ID field to 250 octets.
> >
> > In practice, it's not much of a problem.  We saw a few messages like
that
> > which sparked the original discussion, but I think they were spam or
other
> > weird cases, not people generating such message IDs for some real
purpose.
>
> OK, that's good then.
>
> >> Understood.  No 400 here.
> >> Thus:
> >>
> >>   [C] TAKETHIS
> >>   [C] (with article afterwards...)
> >>   [C] TAKETHIS bad-mid
> >>   [C] TAKETHIS a b c
> >>   [S] 439
> >>   [S] 439 bad-mid
> >>   [S] 439 a b c
> >>
> >> Such answers are not RFC-compliant (not 501, and 439 not followed
> >> by a message-ID) but are maybe the best thing to do.
> >
> > Yeah, I guess I'd lean towards doing this because it's the least likely
to
> > confuse the other side, although all options here are kind of eh.  I
> > wouldn't argue with someone who felt 501 was the right reply.
>
> I believe that for interoperability reasons, we should indeed send
438/439.
> Both DNews and Diablo do that.  But... in different ways!
>
> 200 DNEWS Version  5.7e1,, S0, posting OK
> CHECK <a@b>
> 238 <a@b> not here, please send it to me
> CHECK a b
> 438 a article not wanted - Missing opening angle bracket
> CHECK <a@
> 438 <a@ article not wanted - Closing angle bracket missing
> TAKETHIS a
> .
> 439 a transfer failed - do not try again later (No msgid in headers)
>
>
> 200 NNTP Service Ready (DIABLO 5.0-REL)
> check <k
> CHECK <a@b>
> 238 <a@b>
> CHECK a b
> 438 a b Bad Message-ID
> CHECK <a@
> 438 <a@ Bad Message-ID
> TAKETHIS a
> .
> 439 <> 3 000001 TooSmall
>
>
> DNews replies with the *first* keyword ("CHECK a b" -> "438 a")
> whereas Diablo uses everything.
>
> For TAKETHIS, Diablo actually uses the message-ID found in the article.
>
>
> [Diablo]
>
> TAKETHIS abc
> Path: test!not-for-mail
> From: "test" <test@test.com>
> Newsgroups: fr.test
> Subject: Test
> Date: 22 Mar 2009 04:38:40 -0500
> Message-ID: <another@id.com>
>
> Test!
> .
> 439 <> 187 000001 MsgIdMismatch
>
>
> It works with "TAKETHIS <another@id.com>".
> As for DNews, there is no such checks and it uses the argument provided
> to TAKETHIS.
>
>
>
> It makes me think that RFC 3977 states:
>
>    Example of sending an article to another site that rejects it.  Note
>    that the message-id in the IHAVE command is not the same as the one
>    in the article headers; while this is bad practice and SHOULD NOT be
>    done, it is not forbidden.
>
> Though we do not have a similar comment in RFC 4644, it is similarly
> not forbidden.
>
>
>
> >>   [C] TAKETHIS
> >>   [C] (with article afterwards...)
> >>   [C] TAKETHIS bad-mid
> >>   [C] TAKETHIS a b c
> >>   [S] 501
> >>   [S] 501 bad-mid
> >>   [S] 501 a b c
> >>
> >> The advantage is that these answers are RFC 3977-compliant (501, with
a
> >> valid response argument).  But I doubt that implementations are
properly
> >> handling the arguments of 501 after CHECK/TAKETHIS.  The same goes for
> >> 400, 403, etc.
> >
> > Oh, yeah, I'm sure they don't.
>
> :)

If I understand the question properly, I believe the best course of action
for a TAKETHIS command with a bad parameter is:
1) Return the appropriate error code (asychronously with the transfer of
the message?), and
2) Simply absorb and discard everything that is transferred up to the next
end-of-message marker.
The discarded message's MID shall NOT be added to the history archive (so
it may be accepted via a different source that isn't buggy).

Technical Details
Message-ID: <gq66li$h6p$1@aux.snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.newsrouter.astraweb.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-4.ams.xsnews.nl!69.16.177.242.MISMATCH!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq583d$nj5$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gq66li$h6p$1@aux.snarked.org>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Sun, 22 Mar 2009 13:21:49 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq583d$nj5$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.newsrouter.astraweb.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-4.ams.xsnews.nl!69.16.177.242.MISMATCH!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 136
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net
X-Trace: aux.snarked.org 1237753331 17625 71.106.211.188 (22 Mar 2009 20:22:11
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 22 Mar 2009 20:22:11 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-Bytes: 5371