🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #86565

Q on unfolding headers

#86565
From: Luu Tran
Date: Fri, 02 Nov 2001 02:13
33 lines
1703 bytes
From rfc822

<<
The process of moving  from  this  folded   multiple-line
        representation  of a header field to its single line represen-
        tation is called "unfolding".  Unfolding  is  accomplished  by
        regarding   CRLF   immediately  followed  by  a  LWSP-char  as
        equivalent to the LWSP-char.
>>

So only the CRLF should be removed, correct?  I.e.,

X-1: foo<CRLF>
<WS>bar.

should become

X-1: foo bar.

The leading whitespace(s) should be kept intact, right?

The reason I ask is that I've come across instances where keeping the 
lwsp looks wrong.  Either I'm misreading the RFC or the user-agent folded 
the header incorrectly.

PS: there's a new test version out for those interested.

http://xnews.3dnews.net/test/

-- 
  luu
author of Xnews - http://Xnews.3Dnews.net
Technical Details
Message-ID: <Xns914CB9717AB37luutrangeocities@207.126.101.97>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!news.supernews.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <Xns914CB9717AB37luutrangeocities@207.126.101.97>
Subject: Q on unfolding headers
Date: Thu, 01 Nov 2001 18:13:47 -0800
From: Luu Tran <luutran@geocities_.com.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!news.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Daedalus
User-Agent: Xnews/4.11.01
X-Face: "-(*;qm<4C[xH8Ni'T7VAM0:6u&odQ+qKp<;c|OU;IP&`f^r>Ak^`!CX1S}ca@D!(f$jO4Xiz$p^AS[Aq9{%Zo9qU^WW2de_x*5j&Rc|=aD6O[>L|^VN3!A]+'+GqGqPHR
X-Complaints-To: newsabuse@supernews.com
Lines: 32