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

Kevin Layer | 8 Aug 2012 16:20
Favicon

Re: new nmh broken?

>> > So ... you read the release notes, right?
>> > 
>> > --Ken
>> 
>> Well, no.  I did a "yum update" and things stopped working.  I did
>> not install from source.  I would be unable to get any work done if
>> I had to read the release notes on every package upgrade.

Which is what 99% of the people that will have this problem will do.
For this reason, I agree that the error message needs updating.

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

rader | 9 Aug 2012 17:25
Picon

cruddy X-MH-Attach behavior


I have...

 send: -alias aliases -attach X-MH-Attach -attachformat 1

and just sent a PDF with the msg body in plain text via...

 What now? attach ~/Quote_GSCQ33155_1344264047128.pdf

resulting in...

 X-MH-Attach: /home/rader/Quote_GSCQ33155_1344264047128.pdf

I expected, would have liked to have sent, is the msg body as plain text.

What I actually received was the msg body encoded as application/octet-stream
in base64.

Bug?  Fixed since nmh-1.3?

[Aside: I seem to recall this has happened before and doesn't happen with the
old method of doing attachments.  My brain is increasingly feeble and thus I
don't even remember the old #something format off the top of my head!  Nice.]

steve
--

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
(Continue reading)

rader | 9 Aug 2012 17:36
Picon

Alternate-Mailboxes: failure


I have...

 Alternate-Mailboxes: rader, rader <at> hep.wisc.edu, rader <at> physics.wisc.edu, rader <at> hep.physics.wisc.edu

yet msgs...

 cc: rader <at> hep.physics.wisc.edu, rader <at> hep.wisc.edu

...get delivered to me in duplicate.

Bug?

Wouldn't it be nice to be able to use globs?!?

steve
--

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

Ken Hornstein | 9 Aug 2012 17:38
X-Face
Picon
Favicon

Re: cruddy X-MH-Attach behavior

>What I actually received was the msg body encoded as application/octet-stream
>in base64.
>
>Bug?  Fixed since nmh-1.3?

I just tried it ... and my message body was in text/plain, no
encoding.  So I can't reproduce it myself.

>[Aside: I seem to recall this has happened before and doesn't happen with the
>old method of doing attachments.  My brain is increasingly feeble and thus I
>don't even remember the old #something format off the top of my head!  Nice.]

All the "new" method does is insert the "old method" directives in the draft
and runs mhbuild on it.  In theory it shouldn't do anything the old system
doesn't do.

And speaking of old ... 1.3?

--Ken

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

Jon Steinhart | 9 Aug 2012 17:38

Re: cruddy X-MH-Attach behavior

rader <at> hep.wisc.edu writes:
> 
> I have...
> 
>  send: -alias aliases -attach X-MH-Attach -attachformat 1
> 
> and just sent a PDF with the msg body in plain text via...
> 
>  What now? attach ~/Quote_GSCQ33155_1344264047128.pdf
> 
> resulting in...
> 
>  X-MH-Attach: /home/rader/Quote_GSCQ33155_1344264047128.pdf
> 
> I expected, would have liked to have sent, is the msg body as plain text.
> 
> What I actually received was the msg body encoded as application/octet-stream
> in base64.
> 
> Bug?  Fixed since nmh-1.3?
> 
> [Aside: I seem to recall this has happened before and doesn't happen with the
> old method of doing attachments.  My brain is increasingly feeble and thus I
> don't even remember the old #something format off the top of my head!  Nice.]
> 
> steve

Could be cruddy user behavior :)

What's your .mh_profile look like?  Have you told it what to do with PDF files?
(Continue reading)


Gmane