Kevin Cosgrove | 1 Nov 01:09 2011
Picon

Re: replying to an attachment?


On 31 October 2011 at 13:47, Harvey Eneman <harvey.eneman <at> oracle.com> wrote:

> What usually works for me is to right click on the part's message 
> header and select "Extract a message/rfs822 into current folder".
> You should then be able to process the extracted message in the
> usual way.

In command line you might have luck with

   mhn -list <msgno>	to see what parts are contained in the message
   mhn -store -auto	to unpack the message into the current folder

Good luck....

> Regards,
> 
> Harv
> 
> 
> ------- =_aaaaaaaaaa0
> Content-Type: message/rfc822
> Content-ID: <35736.1320094027.2 <at> pond.us.oracle.com>
> Content-Description: original message
> 
> X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pond.us.oracle.com
> X-Spam-Level: 
> X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
> 	autolearn=ham version=3.3.1
> Received: from pond.us.oracle.com (localhost [127.0.0.1])
(Continue reading)

Marion Hakanson | 1 Nov 01:30 2011

Re: replying to an attachment?

Valdis.Kletnieks <at> vt.edu said:
> If you open the message, you should see the nested message as an attachment.
> Right-click on the attachment to get a menu, one of the options will
> hopefully be "Extract a message/rfc822 into current folder".  Select that,
> you'll then get a new message in the folder, consisting of the attachment,
> You should then be able to use 'reply' and friends normally.

kevinc <at> cosgroves.us said:
>    mhn -list <msgno>	to see what parts are contained in the message
>    mhn -store -auto	to unpack the message into the current folder 

Thanks, all.  I've been right-clicking on everything in sight, but am
embarrassed to say I had missed doing so on the attachment's headers.
It's not quite what I was looking for, but it's closer than what I've
been doing.  If I ever get a free weekend, I might even be able to
add to that code a little.

Regards,

Marion
rader | 1 Nov 01:51 2011
Picon

Re: replying to an attachment?


 > > What usually works for me is to right click on the part's message 
 > > header and select "Extract a message/rfs822 into current folder".
 > > You should then be able to process the extracted message in the
 > > usual way.

 > In command line you might have luck with
 > 
 >    mhn -list <msgno>	to see what parts are contained in the message
 >    mhn -store -auto	to unpack the message into the current folder
 > 
 > Good luck....

If the inner msg you want to repl to is always the Nth part, then maybe
adding -part N to mhshow invocation in the enclosed script will be a whole
cli solution?  Or strip -part N from $* and use it in mhshow (at that point
i'd recode in perl.)

Fyi/fwiw, I call the script "replx", and I use it a lot these days.  It uses
mhshow to pretty print the enclosed msg you're replying to--increasing
necessary with so many html-only and other quoted-printable encoded msgs
being sent.  See also the exmh archives ca Jun 2004.

steve
--

#!/bin/bash
repl -filter /dev/null -nodraftfolder -nowhatnowproc $*
(cat ~/Mail/draft; echo -e "\n > ---- Original Message ----" ; \
  mhshow cur -type text -nopause -nomoreproc \
(Continue reading)

Kevin Cosgrove | 1 Nov 02:30 2011
Picon

Re: replying to an attachment?


On 31 October 2011 at 19:51, rader <at> hep.wisc.edu wrote:

> 
>  > > What usually works for me is to right click on the part's message 
>  > > header and select "Extract a message/rfs822 into current folder".
>  > > You should then be able to process the extracted message in the
>  > > usual way.
> 
>  > In command line you might have luck with
>  > 
>  >    mhn -list <msgno>	to see what parts are contained in the message
>  >    mhn -store -auto	to unpack the message into the current folder
>  > 
>  > Good luck....
> 
> If the inner msg you want to repl to is always the Nth part, then maybe
> adding -part N to mhshow invocation in the enclosed script will be a whole
> cli solution?  Or strip -part N from $* and use it in mhshow (at that point
> i'd recode in perl.)
> 
> Fyi/fwiw, I call the script "replx", and I use it a lot these days.  It uses
> mhshow to pretty print the enclosed msg you're replying to--increasing
> necessary with so many html-only and other quoted-printable encoded msgs
> being sent.  See also the exmh archives ca Jun 2004.
> 
> steve
> --
> 
> #!/bin/bash
(Continue reading)

rader | 1 Nov 02:39 2011
Picon

Re: replying to an attachment?


 > > #!/bin/bash
 > > repl -filter /dev/null -nodraftfolder -nowhatnowproc $*
 > > (cat ~/Mail/draft; echo -e "\n > ---- Original Message ----" ; \
 > >   mhshow cur -type text -nopause -nomoreproc \
 > >     | egrep -v '^Return-Path|^Delivery-Date|^part[ ]+text/plain' \
 > >     | egrep -v '^X-|^MIME' \
 > >     | sed 's/^/ > /' \
 > >   )  > ~/Mail/drafts/999
 > > comp -use -draftfolder drafts -draftmessage 999
 > > rm -f ~/Mail/draft
 > > rm -f ~/Mail/drafts/999

 > Maybe 'rmm' instead of 'rm' ???

rm has worked well for a little over six years now?

steve
--

Gmane