Marion Hakanson | 31 Oct 2011 21:28
Favicon

replying to an attachment?

Greetings,

I could use some advice on how to reply to a message which is a MIME
attachment inside of another message.  In this particular case, the
original message was sent to an Exchange mailbox, and then (for various
reasons I won't go into here) forwarded as an attachment to myself.

Naturally, the return address(es) I want to reply to are actually
in the attachment, so the normal repl/replcomps mechanisms never
sees those when replying to the "outer" message.  Modern mail reader
programs these days have a way to "open" such a nested message and
then operate on it normally, but I can't see an obvious method in
exmh as it is.  Maybe someone has some Tcl/Tk code that does this?

In case it matters, I'm using exmh-2.7.2 and nmh-1.3, on the
OpenIndiana-151a operating system, x86_64 platform.

Thanks and regards,

--

-- 
Marion Hakanson <hakansom <at> ohsu.edu>
OHSU Advanced Computing Center
Valdis.Kletnieks | 31 Oct 2011 21:46
Picon
Favicon

Re: replying to an attachment?

On Mon, 31 Oct 2011 13:28:59 PDT, Marion Hakanson said:

> I could use some advice on how to reply to a message which is a MIME
> attachment inside of another message.  In this particular case, the
> original message was sent to an Exchange mailbox, and then (for various
> reasons I won't go into here) forwarded as an attachment to myself.

You're in luck maybe. ;)

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.

Now if somebody has some Tcl code to properly quote a text/plain out of a
multipart/whatever, *that* would be slick (especially if it handles
Content-Type-Encoding: properly as well ;)

_______________________________________________
Exmh-users mailing list
Exmh-users <at> redhat.com
https://www.redhat.com/mailman/listinfo/exmh-users
Harvey Eneman | 31 Oct 2011 21:47
Picon
Favicon

Re: replying to an attachment?

Hi Marion,

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.

Regards,

Harv

Favicon
From: Marion Hakanson <hakansom <at> ohsu.edu>
Subject: replying to an attachment?
Date: 2011-10-31 20:28:59 GMT
Greetings,

I could use some advice on how to reply to a message which is a MIME
attachment inside of another message.  In this particular case, the
original message was sent to an Exchange mailbox, and then (for various
reasons I won't go into here) forwarded as an attachment to myself.

Naturally, the return address(es) I want to reply to are actually
in the attachment, so the normal repl/replcomps mechanisms never
(Continue reading)

Kevin Cosgrove | 1 Nov 2011 01:09
Picon
Favicon

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)

rader | 1 Nov 2011 01:51
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 2011 02:30
Picon
Favicon

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 2011 02:39
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