Article View: news.software.nntp
Article #60326Re: Delivery of wrong articles by some news-hosts
From: Russ Allbery
Date: Tue, 10 Sep 2002 17:56
Date: Tue, 10 Sep 2002 17:56
26 lines
2268 bytes
2268 bytes
Martin Kotulla <mk999@gmx.de> writes:
> If it were only that easy ... I have seen too many messages with empty
> lines in the header, so my algorithm takes an empty line only as a
> message separator if it has already passed over Xref:, Path:, and
> Message-ID:.
What do you mean by "empty line"?
If you mean a completely blank line, just a CRLF pair, then that's the end
of the headers. Period, full stop. You're not doing anyone any favors by
trying to parse beyond that point; you're just mangling articles for the
next person and allowing unparsable junk into your server.
If you mean a line that contains some whitespace but no non-whitespace
characters, that's legal RFC 822 syntax but illegal under RFC 2822 except
with the obsolete rules, so you may have to parse that as a continuation
line, depending on how generous you're willing to be in accepting some of
the more bizarre RFC 822 formations.
--
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.
Technical Details
Message-ID:
<ylk7lt3ezm.fsf@windlord.stanford.edu>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!nntp.stanford.edu!not-for-mailReferences:
<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: <ylk7lt3ezm.fsf@windlord.stanford.edu> Subject: Re: Delivery of wrong articles by some news-hosts Date: Tue, 10 Sep 2002 10:56:45 -0700 From: Russ Allbery <rra@stanford.edu> 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!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 25 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1031680606 26604 171.64.13.23 (10 Sep 2002 17:56:46 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:SgtfzaSdG97CofAQoRF3kVutD4E=