🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68793

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

#68793
From: Bill Davidsen
Date: Thu, 25 Mar 2004 17:20
28 lines
2499 bytes
Gregg Woodcock wrote:
>
> #2: I thought one of the foundational NNTP/SMTP requirements was that
> every line in the head of a message contains a COMPLETE header (i.e.
> multiple headers on 1 line is not allowed; nor is a header allowed to
> span more than 1 line).  How is it that the MIME Content-Type header
> sometimes violates this as per this example:
> http://groups.google.com/groups?selm=404593c5%40e-post.inode.at&output=gplain
> 
> I am thinking of adding code to handle this case that looks for a
> continuation of value clauses on the next line if the current line
> ends in a ';' but for which headers should this be done (obviously not
> for headers such as "From:" and "Subject:")?

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.


-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me
Technical Details
Message-ID: <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!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr31.news.prodigy.com.POSTED!dd8c8703!not-for-mail
References: <86a40a7d.0403091047.6b10611a@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <cxE8c.28552$UU7.4162@newssvr31.news.prodigy.com>
Subject: Re: MIME peculiarities (C-T and C-T-E); help please!
Date: Thu, 25 Mar 2004 17:20:08 GMT
From: Bill Davidsen <davidsen@tmr.com>
References: <86a40a7d.0403091047.6b10611a@posting.google.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!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr31.news.prodigy.com.POSTED!dd8c8703!not-for-mail
Organization: TMR Associates
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031208
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp,comp.mail.mime
In-Reply-To: <86a40a7d.0403091047.6b10611a@posting.google.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 27
NNTP-Posting-Host: 10.43.38.209
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr31.news.prodigy.com 1080235208 10.43.38.209 (Thu, 25 Mar 2004 12:20:08 EST)
NNTP-Posting-Date: Thu, 25 Mar 2004 12:20:08 EST