Thread View: news.software.readers
3 messages
3 total messages
Started by Greg Earle
Mon, 30 Aug 1993 19:38
Re: Mhn setup for "Content-Type: application/octet-stream"?
Author: 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
Re: Mhn setup for "Content-Type: application/octet-stream"?
Author: 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
Re: Mhn setup for "Content-Type: application/octet-stream"?
Author: Kari E. Hurtta
Date: Wed, 01 Sep 1993 14:46
Date: Wed, 01 Sep 1993 14:46
37 lines
3176 bytes
3176 bytes
In article <25vuf5$hvu@isolar.Tujunga.CA.US> earle@isolar.Tujunga.CA.US (Greg Earle) wrote:
> 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:
<DELETED>
> 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?
*IF* I read original message correctly, format was:
multipart/mixed;boundary=announce
multipart/alternative;boundary=access-method
message/external-body; access-type=anon-ftp;
application/octet-stream
messsage/external-body; access-type=mail-server;
text/plain
So parts message/external-body; access-type=anon-ftp;
and messsage/external-body; access-type=mail-server;
are ALTERNATIVE. mhn should only retrieve ONE of alternative parts.
I think that mhn works correctly.
--
- K E H / El�m� on monimutkaista
Kari.Hurtta@Helsinki.FI
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads