🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69366

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

#69366
From: Rob Yampolsky
Date: Mon, 28 Jun 2004 17:30
41 lines
2945 bytes
> 
> 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.
> 
> 

Hi.  I've come late to this discussion, but I think it's related to a 
problem I'm seeing.  I've set up a .forward file to have sendmail run 
incoming mail through a script that wants to extract and process an XML 
attachment.

My script copies the incoming mail stream to a temp file before playing 
with it.  Originally, this was a simple 'while read; do echo; done' loop.

I'm using munpack to extract the attachment (suggestions for something 
better?), and it balks at Outlook-generated attachments.  The 
Content-type: and a few other Content-... headers are coming across from 
outlook ending with semicolons and continued on the next line *without* 
any leading whitespace.  Munpack says there's no attachment.

I changed my .forward script to check for any lines beginning and ending 
with "Content-...; and to echo them replacing the trailing newline with 
a blank to effectively concatenate the next line.  This seems to get 
munpack to work.

Questions?

1. Is Outlook doing it wrong here?
2. Is munpack just outdated software (version 1.6) that should know how 
to handle this?
3. Is it possible that Outlook is including the required leading 
whitespace, and it's getting lost due to the .forward mechanism.

Thanks,
-Rob
Technical Details
Message-ID: <cbpkjp$c83$1@ngspool-d02.news.aol.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!g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!ngpeer.news.aol.com!news.compuserve.com!news-master.compuserve.com!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: <cbpkjp$c83$1@ngspool-d02.news.aol.com>
Subject: Re: MIME peculiarities (C-T and C-T-E); help please!
Date: Mon, 28 Jun 2004 13:30:32 -0400
From: Rob Yampolsky <me@nospam.org>
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!g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!ngpeer.news.aol.com!news.compuserve.com!news-master.compuserve.com!not-for-mail
Newsgroups: news.software.nntp,comp.mail.mime
Organization: CompuServe Interactive Services
Lines: 40
NNTP-Posting-Host: 156.43.4.1
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: ngspool-d02.news.aol.com 1088443833 12547 156.43.4.1 (28 Jun 2004 17:30:33 GMT)
X-Complaints-To: newsmaster@compuserve.com
NNTP-Posting-Date: Mon, 28 Jun 2004 17:30:33 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
X-Accept-Language: en-us, en
In-Reply-To: <cxE8c.28552$UU7.4162@newssvr31.news.prodigy.com>