🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60323

Re: Delivery of wrong articles by some news-hosts

#60323
From: Curt Welch
Date: Tue, 10 Sep 2002 17:17
24 lines
2286 bytes
Martin Kotulla <mk999@gmx.de> wrote:
> If it were only that easy ... I have seen too many messages with empty
> lines in the header

There's no such thing.

A line with only spaces or tabs is not an empty line and is part of the
header. A line with nothing on it is the end of the header.  Always.  It's
impossible for it to "be in the header".

Maybe the articles you are trying to parse have been corrupted by a
newsreader which saves it in a bogus fashion?  In that case, I can
understand why your code is trying to reverse the corruption.  But for real
articles sent over an NNTP connection, there is no doubt or confusion about
where the header ends.  The first CR LF CR LF sequence marks the end of the
header.  The first CR LF is the last line of the header, and the next CR LF
is the blank line between the header and the body.  The rest of the article
is body even if it "looks" like header and it would be very wrong to parse
it as if it were a header.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020910131704.165$gn@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <3100n.892203@archiver.winews.net> <20020908200631.096$KG@newsreader.com> <3D7C6828.2090308@gmx.de> <O000OOOOO0@news.radio.cz> <3D7E1CDE.1000303@gmx.de>

Show Full Headers
Complete Article Headers
Message-ID: <20020910131704.165$gn@newsreader.com>
Subject: Re: Delivery of wrong articles by some news-hosts
Date: Tue, 10 Sep 2002 17:17:04 +0000
From: curt@kcwc.com (Curt Welch)
References: <3100n.892203@archiver.winews.net> <20020908200631.096$KG@newsreader.com> <3D7C6828.2090308@gmx.de> <O000OOOOO0@news.radio.cz> <3D7E1CDE.1000303@gmx.de>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 8Ur2+BGf6JYq20OS3ziCLRhY.=-vClZPXO5DCF82nM/kOs
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-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 23