🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68795

Re: MIME peculiarities (C-T and C-T-E); help please!

#68795
From: Russ Allbery
Date: Thu, 25 Mar 2004 19:49
21 lines
2000 bytes
In news.software.nntp, Bill Davidsen <davidsen@tmr.com> writes:

> A header line may be continued if the next line is (a) non-blank and (b)
> starts with whitespace. My hacked perl code drops trailing whitespace
> from the first line, the head of the 2nd line, and concatentates with a
> single blank between the lines.

> I don't believe this is 100% RFC compliant, but it is really easy to code
> and works in real life.

The RFC-standard unfolding is actually pretty straightforward to
implement.  It says that the newline is not a part of the header content
but all of the whitespace is (since the folding newline can only be added
before whitespace).

-- 
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: <87y8poemg4.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.mime.mbox.zip!archiver1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <86a40a7d.0403091047.6b10611a@posting.google.com> <cxE8c.28552$UU7.4162@newssvr31.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <87y8poemg4.fsf@windlord.stanford.edu>
Subject: Re: MIME peculiarities (C-T and C-T-E); help please!
Date: Thu, 25 Mar 2004 11:49:47 -0800
From: Russ Allbery <rra@stanford.edu>
References: <86a40a7d.0403091047.6b10611a@posting.google.com> <cxE8c.28552$UU7.4162@newssvr31.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.mime.mbox.zip!archiver1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp,comp.mail.mime
Organization: The Eyrie
Lines: 20
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1080244188 13449 171.64.19.147 (25 Mar 2004 19:49:48 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Common Lisp, linux)
Cancel-Lock: sha1:hUUddF36Fgls6qUAHBLFg/i5n0Y=