From: moore@cs.utk.edu (Keith Moore)
Subject: Re: MH 6.8 to OpenWindows MultiMedia Mail?
             <1992Dec26.013110.2733@noose.ecn.purdue.edu>
Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
Mime-Version: 1.0
Newsgroups: comp.mail.mh
Date: 26 Dec 92 23:58:27 GMT

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"

> From: Dave Curry <davy@harbor.ecn.purdue.edu>
> Subject: MH 6.8 to OpenWindows MultiMedia Mail?
> Message-Id: <1992Dec26.013110.2733@noose.ecn.purdue.edu>
> Sender: USENET news <news@noose.ecn.purdue.edu>
> Date: Sat, 26 Dec 1992 01:31:10 GMT
> To: mh-users@ics.uci.edu
>
>
>
>
> Has anyone come up with appropriate config file entries and/or supplemental
> programs to allow MH 6.8's "mhn" program to deal with the multimedia mail
> that Sun's OpenWindows 3.0 MailTool produces?

Here's a quick perl hack...so far it deals with GIFs, Sun Rasterfiles
(converting them to .GIF), audio, PostScript, and normal text.
It's fairly easy to add others.

Keith


------- =_aaaaaaaaaa0
Content-Type: application/octet-stream
Content-Description: sun to mime mail converter
Content-Transfer-Encoding: base64

IyEvdXNyL2xvY2FsL2Jpbi9wZXJsCiMKIyBwcm9ncmFtIHRvIGNvbnZlcnQgQnJva2VuV2luZG93
cyBtYWlsdG9vbC1zdHlsZSBtZXNzYWdlcyB0byBNSU1FLgojIGF1dGhvcjogS2VpdGggTW9vcmUK
IwojIFBlcm1pc3Npb24gaXMgZ3JhbnRlZCB0byB1c2UgdGhpcyBmb3Igd2hhdGV2ZXIgcHVycG9z
ZSB5b3Ugd2lzaCwKIyBwcm92aWRlZCB5b3UgZG9uJ3QgaG9sZCBtZSByZXNwb25zaWJsZSBpZiB0
aGlzIGRvZXNuJ3Qgd29yayBsaWtlCiMgeW91IHdhbnQgaXQgdG8uCiMKIyBjdXN0b21pemF0aW9u
OiBhZGQgeW91ciBvd24gdHlwZXMgYXQgd2lsbC4uLgojIGlmIGEgY29udm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