🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68484

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

#68484
From: Gregg Woodcock
Date: Tue, 09 Mar 2004 18:47
24 lines
2129 bytes
#1: Is it valid for a multipart MIME message to have the
"Content-Transfer-Encoding" header in the main (envelope) header?  RFC
1521 clearly implies (but does not directly state) it is not valid but
yet
I see it happening anyway.  If it is invalid, should it just be
ignored?  If it is valid, to what does it apply?  If it is valid my
guess would be that it applies to any sub-part to which it can apply
but which does not already have it's own Content-Transfer-Encoding
header.  What
if both parts have this header (I assume the sub-part's header
"wins")?

#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:")?
Technical Details
Message-ID: <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!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <86a40a7d.0403091047.6b10611a@posting.google.com>
Subject: MIME peculiarities (C-T and C-T-E); help please!
Date: Tue, 09 Mar 2004 18:47:59 +0000
From: woodcock@SonLightSoftware.com (Gregg Woodcock)
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!postnews1.google.com!not-for-mail
Newsgroups: news.software.nntp,comp.mail.mime
Organization: http://groups.google.com
Lines: 23
NNTP-Posting-Host: 47.230.0.41
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1078858079 23649 127.0.0.1 (9 Mar 2004 18:47:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 9 Mar 2004 18:47:59 +0000 (UTC)