Article View: news.software.readers
Article #5618Re: Mhn setup for "Content-Type: application/octet-stream"?
From: Greg Earle
Date: Mon, 30 Aug 1993 19:38
Date: Mon, 30 Aug 1993 19:38
103 lines
4546 bytes
4546 bytes
In article <7340.746117258@moose.cs.indiana.edu>,
Marc VanHeyningen <mvanheyn@cs.indiana.edu> wrote:
>Thus said Bard.Grimsmo@termo.unit.no:
>>I have tried to read messages with content-type application/octet-stream,
>>but in most cases I get the message:
>>
>>mhn: don't know how to display content
>> (content application/octet-stream in message ...)
>>
>>Can anyone tell me how the mhn-show-application/octet-stream line in
>>.mh_profile should look like. (It seems like this content type can have
>>different decodings depending on the sender?) Any information about
>>this, base64, mimencode and mmencode is much appreciated.
>
>application/octet-stream is the "cop-out" Content-Type, used when no
>other content-type is suited. Displaying it is therefore not an
>appropriate thing to do, since it shouldn't be text or any other sort
>of human-readable data. Use mhn -store to put it in a file.
Speaking of "mhn -store", I am using the "strn" newsreader (based on "trn"),
which has the ability to recognize - and thus store/display - MIME messages.
My config.h file contains
# define MIMESTORE "/usr/local/mh/bin/mhn -store -auto -file "
(strn/trn will add a "%A" interpolation to provide the file name at the end.)
I found a message (Message-ID: <25fcge$ark@info2.rus.uni-stuttgart.de>) in
comp.archives that contains:
..
Mime-Version: 1.0
Content-Type: multipart/mixed;boundary=announce
..
Archive-Name: /pub/unix/NetBSD/NetBSD-0.9/
What's in this directory: <1.4>
CHANGES Description of what changes have happened to NetBSD
..
utilities Utilties which could be useful in installing NetBSD/i386
--announce
Content-Type: multipart/alternative;boundary=access-method
--access-method
Content-Type: message/external-body;
access-type=anon-ftp;
site=info2.rus.uni-stuttgart.de;
directory=/pub/unix/NetBSD;
name=NetBSD-0.9.tar;
size=45199360;
mode=binary
Content-Type: application/octet-stream
--access-method
Content-Type: messsage/external-body;
access-type=mail-server;
server=ftpmail@info2.rus.uni-stuttgart.de
Content-Type: text/plain
open info2.rus.uni-stuttgart.de
cd /pub/unix/NetBSD
get NetBSD-0.9.tar
--access-method--
--announce--
How to get files from info2.rus.uni-stuttgart.de ?
..
When I try to store this, I get:
isolar:2:102 % /usr/local/mh/bin/mhn -store -auto -file /var/spool/news/comp/ar
chives/871
mhn: invalid parameter in message /var/spool/news/comp/archives/871's Content-Type: field
(parameter directory)
Can someone tell me what "mhn" is complaining about, here? I'm using MH 6.8:
version: MH 6.8 #1[UCI] (isolar) of Fri Feb 19 02:29:35 PST 1993
options: [ATTVIBUG] [BIND] [BPOP] [BSD42] [BSD43] [FLOCK]
[FOLDPROT='"0700"'] [MHE] [MHRC] [MIME] [MIME] [MSGID]
[MSGPROT='"0600"'] [NFS] [NNTP] [OVERHEAD] [RENAME] [RPATHS]
[SENDMTS] [SMTP] [SUN40] [TYPESIG=void] [UCI] [VSPRINTF]
[WHATNOW] [WHATNOW] [ZONEINFO]
It looks like it doesn't like the "directory=/pub/unix/NetBSD;" specifier in
the "Content-Type: message/external-body;". I don't know enough about MIME or
"mhn" to know what it is that it doesn't like. I also looked at uip/mhn.c's
get_ctinfo() function but it wasn't obvious to me what was going on ...
Thanks in advance,
--
- Greg Earle
Phone: (818) 353-8695 FAX: (818) 353-1877 [Call # again if
Internet: earle@isolar.Tujunga.CA.US you get data tone]
UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
Technical Details
Message-ID:
<25tkuq$sm@isolar.Tujunga.CA.US>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!isolar!isolar!not-for-mailReferences:
<1993Aug23.125911.28365@ugle.unit.no> <7340.746117258@moose.cs.indiana.edu>Show Full Headers
Complete Article Headers
Message-ID: <25tkuq$sm@isolar.Tujunga.CA.US> Subject: Re: Mhn setup for "Content-Type: application/octet-stream"? Date: Mon, 30 Aug 1993 19:38:02 +0000 From: earle@isolar.Tujunga.CA.US (Greg Earle) References: <1993Aug23.125911.28365@ugle.unit.no> <7340.746117258@moose.cs.indiana.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!isolar!isolar!not-for-mail Newsgroups: comp.mail.mime,news.software.readers,comp.mail.mh Followup-To: comp.mail.mime,news.software.readers,comp.mail.mh Organization: Personal Usenet site, Tujunga, CA USA Lines: 103 NNTP-Posting-Host: isolar.tujunga.ca.us