🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #254836

Re: single-period (.) line amidst the BODY response?

#254836
From: VanguardLH
Date: Sun, 16 Jun 2013 00:58
76 lines
4593 bytes
Ivan Shmakov wrote:

> 	... I don't quite understand how that was possible in the first
> 	place, but still, is there a way for a newsreader to "recover"
> 	from such a situation?  (And is there a simple explanation of
> 	what's gone wrong?)
> 
> 	Consider, e. g.:
> 
> BODY 271868
> 222 271868 <9oKdnV-e3OnnEu_MRVn_vwA@giganews.com> body
> Hi,
> 
> Am planing to design a battery charger using H bridge mosfet configuration
> .

Doesn't matter what follows after this data delimiter line.

How does the other end know when the end of data has been reached?  By 
finding a delimiter line in the data sent to it, and that is the 
dot-newline character sequence.  

http://tools.ietf.org/html/rfc3977#page-46
See section 6.2.1.3 for examples.  
http://tools.ietf.org/html/rfc3977#page-51
See 6.2.3.3 for examples.  

The dot-newline sequence terminates the message (multi-line data 
block) but it appears you already knew that.

http://tools.ietf.org/html/rfc3977#page-56
Section 6.3.1.2
"Thus a single dot (".") on a line indicates the end of the text, and 
lines starting with a dot in the original text have that dot doubled 
during transmission."

Something has to identify to the recipient (server or client) where 
the data block ends.  The commands don't specify the data block size.  
A delimiter line does that.

I have to wonder why the NNTP server accepted anything beyond the 
dot-newline delimiter.  That should've been the end of the data block 
as far as the server was concerned.  

http://tools.ietf.org/html/rfc3977#page-8, section 3.1.1, says:

  3.  If any line of the data block begins with the "termination 
      octet" ("." or %x2E), that line MUST be "dot-stuffed" by 
      prepending an additional termination octet to that line of the 
      block.

In other words, the client should notice a dot-newline string and 
change it to dot-dot-newline before transmitting the message to the 
server; however, if the client didn't do that, the server should've 
truncated the data block at the unintentional delimiter line (and 
rejected the rest as unknown commands).

Since the owner of AIOE keeps putzing around with his proprietary set 
of rules (only a few of which he publishes at his web site) that often 
don't comply with NNTP standards, well, looks like he did something 
goofy on his end.  But does the message have what you say it does?

Google Groups copy of the single message:
https://groups.google.com/forum/?fromgroups#!original/sci.electronics.design/lu3v2ZrfEe0/v0o04A2e0G8J

There is no unintentional dot-newline delimiter line in GG's copy 
(Giganews was the injection node).  So I have to wonder why AIOE's 
copy peered to it or delivered from there is different than the GG's 
copy of the Giganews post.

Right now I don't have a telnet.exe client on my host (and it's going 
to take awhile before it gets installed) and there are way too many 
posts in that newsgroup that I don't visit to bother retrieving them 
all to see if my newsreader shows the raw message with that line (it 
shouldn't but instead figure the server sent it as the delimiter and 
end the block there).
Technical Details
Message-ID: <kpj2jn$6nk$1@news.albasani.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
References: <87ppvnf9lq.fsf@violet.siamics.net>

Show Full Headers
Complete Article Headers
Message-ID: <kpj2jn$6nk$1@news.albasani.net>
Subject: Re: single-period (.) line amidst the BODY response?
Date: Sat, 15 Jun 2013 19:58:31 -0500
From: VanguardLH <V@nguard.LH>
References: <87ppvnf9lq.fsf@violet.siamics.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: Usenet denizen
Lines: 76
Sender: VanguardLH <>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net
 EJR43qmdbwkfzi2vCONPZiNVkyhsP2Tu+w23WS6ud5Ro3Ysx7e8PcPCZBNdprc/PGXSHWCzHVxv0g/I2AONVrw==
NNTP-Posting-Date: Sun, 16 Jun 2013 00:58:31 +0000 (UTC)
Injection-Info: news.albasani.net;
 logging-data="AXnqLi8E5NUcmhpIeX2frudd2uuilB8Og78CNhpAsR1KqjFnNnjEWwMLa4bzHCIziq5gYmLpiTWrWlT+KwBQXojkVl8vc0V/HuPVTN9MQ4GXjJ9wp03KEFnrMl4ryLyg";
 mail-complaints-to="abuse@albasani.net"
Keywords: VanguardLH VLH811
User-Agent: 40tude_Dialog/2.0.15.41
Cancel-Lock: sha1:07GyEaqRWIxAGkm7GAuttCMaHAw=
X-Original-Bytes: 4371