Article View: news.software.readers
Article #5624Re: Mhn setup for "Content-Type: application/octet-stream"?
From: Greg Earle
Date: Tue, 31 Aug 1993 16:32
Date: Tue, 31 Aug 1993 16:32
118 lines
5564 bytes
5564 bytes
In article <KARI.HURTTA.93Aug31114235@plootu.helsinki.fi>,
Kari E. Hurtta <Kari.Hurtta@Helsinki.FI> wrote:
>In article <25tkuq$sm@isolar.Tujunga.CA.US> earle@isolar.Tujunga.CA.US (Greg Earle) wrote:
>>In article <7340.746117258@moose.cs.indiana.edu>,
>>--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--
>
>>When I try to store this, I get:
>>
>> % /usr/local/mh/bin/mhn -store -auto -file /var/spool/news/comp/archives/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:
>
>"/" is a special character. Content-Type -field violates MIME-syntax.
>
>Argument
> directory=/pub/unix/NetBSD;
>should be
> directory="/pub/unix/NetBSD";
Thanks to Kari and Frank Bieser (frankb@HAL.COM) who pointed this out to me.
"mhn" also complained about the line
--access-method
Content-Type: messsage/external-body;
access-type=mail-server;
server=ftpmail@info2.rus.uni-stuttgart.de
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
so I quoted that as well:
server="ftpmail@info2.rus.uni-stuttgart.de"
Now "mhn" is happy, but it looks like "mhn" has a bug? If it can store one
part of the message in a file successfully, it seems to give up (!) and not
process the rest of the message? Observe:
isolar:2:130 % pwd
/home/earle
isolar:2:131 % touch foo
isolar:2:132 % ls -l foo
-rw-r--r-- 1 earle 0 Aug 31 09:13 foo
isolar:2:133 % rm foo
isolar:2:134 % touch foo
isolar:2:135 % ls -l foo ; rm -f foo
-rw-r--r-- 1 earle 0 Aug 31 09:13 foo
Obviously, I can write into my own home directory, so this is what "mhn" does:
isolar:2:136 % mhn -store -auto -file /var/spool/news/comp/archives/871
storing message /var/spool/news/comp/archives/871 part 1.1 as file 871.1.1.external-body
isolar:2:137 % ls -l 871*
-rw-rw-r-- 1 earle 97 Aug 31 09:14 871.1.1.external-body
Now watch what happens when I go to a directory where I can't write in it:
isolar:2:138 % cd /
isolar:2:139 % ls -ldg
drwxr-xr-x 5 root wheel 512 Apr 21 21:25 ./
isolar:2:140 % touch foo
touch: cannot create foo: Permission denied
isolar:2:141 % mhn -store -auto -file /var/spool/news/comp/archives/871
storing message /var/spool/news/comp/archives/871 part 1.1 as file 871.1.1.external-body
mhn: unable to fopen for writing /871.1.1.external-body: Permission denied
storing message /var/spool/news/comp/archives/871 part 1.2 as file NetBSD-0.9.tar
Retrieve NetBSD-0.9.tar (content 1.2)
using anonymous FTP from site info2.rus.uni-stuttgart.de (45199360 octets)?n
isolar:2:142 %
So, why did "mhn" quit after having written part 1.1 (which, btw, contained
the "access-type=mail-server" text/plain contents, rather than the anon-ftp
contents) without asking me if I wanted to retrieve "content 1.2"?
The whole point of this exercise is to try and find a way to display MIME
postings on Usenet via "mhn" if "metamail" is not available. One last related
question then becomes, what commands should be executed such that one can
temporarily store a message with "mhn -store ... " and then be able to display
the same message immediately with "mhn -show -serialonly ... ", followed by
the removal of the temporary message (perhaps via "rmm")? If I use the above
default (mhn -store -auto -file <path to file>), it stores the results in the
current directory (e.g., "871.1.1.external-body" as shown above). Since this
isn't in any MH folder, and it's not a message number (e.g., "871"), doing an
"mhn -show -serialonly" on it fails. Any suggestions?
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:
<25vuf5$hvu@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!newsserver.jvnc.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> <25tkuq$sm@isolar.Tujunga.CA.US> <KARI.HURTTA.93Aug31114235@plootu.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <25vuf5$hvu@isolar.Tujunga.CA.US> Subject: Re: Mhn setup for "Content-Type: application/octet-stream"? Date: Tue, 31 Aug 1993 16:32:37 +0000 From: earle@isolar.Tujunga.CA.US (Greg Earle) References: <1993Aug23.125911.28365@ugle.unit.no> <7340.746117258@moose.cs.indiana.edu> <25tkuq$sm@isolar.Tujunga.CA.US> <KARI.HURTTA.93Aug31114235@plootu.helsinki.fi> 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!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!isolar!isolar!not-for-mail Newsgroups: comp.mail.mime,comp.mail.mh,news.software.readers Organization: Personal Usenet site, Tujunga, CA USA Lines: 118 NNTP-Posting-Host: isolar.tujunga.ca.us Summary: More "mhn" bogosity