norm | 5 Aug 2012 17:42

Help extracting mime parts from a message

Would somebody help me?

I need help in extracting mime parts from a message. In practice I often want,
not to invoke some program on a mime part, but to just store it a file.

I am forwarding an example Email. It contains a part, testzipfolder.zip. I would
like to store it a file -- preferably with a name of my own choosing, but I will
accept the name it has in the message. I don't usually want to run unzip on it
-- I can do that myself.

When try to run mhshow on it, it produces nothing useful -- it doesn't even run
unzip. I'm guessing that I ought to have a configuration file somewhere, maybe
.../nmh/etc/mailcap, that tells nmh about zip files.

I usually use a program, metamail, to do this. But the version I have often
dumps core. When I try to compile the current version,
ftp://ftp.research.telcordia.com/pub/nsb/mm2.7.tar.Z, I get a host and a half of
compilation errors.

I'm certain that nmh can do what I need. I just don't know how.

------- Forwarded Message

Return-Path: gatescad <at> gmail.com
Delivery-Date: Sat Aug  4 13:52:22 2012
Return-Path: <gatescad <at> gmail.com>
Received: from localhost (localhost.localdomain [127.0.0.1])
	by localhost.localdomain (8.13.1/8.13.1) with ESMTP id q74KqLYF005959
	for <norm <at> localhost>; Sat, 4 Aug 2012 13:52:21 -0700
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.rawbw.com
(Continue reading)

Jerrad Pierce | 5 Aug 2012 17:51

Re: Help extracting mime parts from a message

You want mhstore, mentioned in the See Also of mhshow

    mhstore              (1)  - store contents of MIME messages into files

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

norm | 5 Aug 2012 18:38

Re: Help extracting mime parts from a message

Jerrad Pierce <belg4mit <at> pthbb.org> writes:
>You want mhstore, mentioned in the See Also of mhshow
>
>mhstore              (1)  - store contents of MIME messages into files

That's EXACTLY what I need. Thank you very much.

    Norman Shapiro
    798 Barron Avenue
    Palo Alto CA 94306-3109
    (650) 565-8215
    norm <at> dad.org

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

David Levine | 5 Aug 2012 20:06
Picon
Favicon

Re: Help extracting mime parts from a message

Norm wrote:

> When try to run mhshow on it, it produces nothing useful
> -- it doesn't even run unzip. I'm guessing that I ought to
> have a configuration file somewhere, maybe
> .../nmh/etc/mailcap, that tells nmh about zip files.

Just to note that you probably don't need any special
configuration.

And, mhlist is very useful when dealing with message parts.
Its switches are very similar to those of mhstore.

David

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

norm | 5 Aug 2012 21:36

Re: Help extracting mime parts from a message

David Levine <levinedl <at> acm.org> writes:
>Norm wrote:
>
>> When try to run mhshow on it, it produces nothing useful
>> -- it doesn't even run unzip. I'm guessing that I ought to
>> have a configuration file somewhere, maybe
>> .../nmh/etc/mailcap, that tells nmh about zip files.
>
>Just to note that you probably don't need any special
>configuration.
>
>And, mhlist is very useful when dealing with message parts.
>Its switches are very similar to those of mhstore.

After playing with mhstore some, I was about to query about mhlist's
functionality, when I read the mhstore man page again to see if it was there and
then saw the reference to mhlist.

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

norm | 22 Aug 2012 16:05

Re: Help extracting mime parts from a message

mhstore and mhlist have markedly improved the quality of my life.

I had seen references to mhstore over the years. But the notion that it had
to do with forwarding Email had somehow gotten into my head. So I never
explored it further.

Thank you all very much.

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

norm | 22 Aug 2012 16:05

Re: Help extracting mime parts from a message

mhstore and mhlist have markedly improved the quality of my life.

I had seen references to mhstore over the years. But the notion that it had
to do with forwarding Email had somehow gotten into my head. So I never
explored it further.

Thank you all very much.

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Gmane