At 10:28 PM +0200 9/26/96, Achim Bohnet wrote:
"Steven W. Eubanks" said:
I seem to have run into a snag trying to configure MHonArc (currently 1.2.2
with upgrade to 1.2.3 pending) to enable it to successfully handle MIME
attachments of the new 'application/vnd.*' content-type definition. I've
mhonarc only handles wildcard definitions of the form (see mhreadmail.pl,
search 'MIMEFilter'):
whatevertype/asubtype
whatevertype/*
Sorry, my mistake in generalizing. In actuality I've got the following
MIME types:
application/vnd.ms-excel
application/vnd.ms-powerpoint
My current resource file reads:
<mimefilters>
...
application/vnd.ms-excel:m2h_external'filter:mhexternal.pl
application/vnd.ms-powerpoint:m2h_external'filter:mhexternal.pl
...
</mimefilters>
And my mhexternal.pl file has been modified to read:
%CTExt = (
...
'application/vnd.ms-excel', 'xls',
'application/vnd.ms-powerpoint', 'ppt',
...
%CTType = (
....
'application/vnd.ms-excel', 'MS-Excel file',
'application/vnd.ms-powerpoint', 'MS-Powerpoint file',
....
And this results in the "Could not process..." warning for me....
Could not process part with given Content-Type:
application/vnd.ms-excel; name="idp97.xls" ;
x-mac-type="584C5335" ; x-mac-creator="5843454C"
As a test, I edited all of the above instances to omit 'vnd.' and modified
my email client (Eudora) to
use 'application/ms-excel' instead; worked fine. (Unfortunately MIME
types are harder to standardize than define ;-) So I assumed the culprit
was the '.' and started looking at the code in mhexternal.pl which parses
the content-type to see if it was parsing the above syntax correctly.
However if it worked for you without making the mods/patches to
mhexternal.pl, maybe I'm barking-up the wrong tree.
Hope this helps,
Achim
[...]
[Poor guy. I get 130 bytes/sec when surfing in NASAs web pages :-)]
Maybe 130 bytes/sec would ;-)
Thanks.
Steve