Re: when replying, use envelope recipient
From: Travis H. <travis+ml-mutt@xxxxxxxxxxxxxxxxx>
Date: Mon, Dec 25, 2006 at 08:40:10PM -0600
> On Mon, Dec 25, 2006 at 04:28:56PM +0100, jurriaan@xxxxxxxxxxxxxxxxxxxxxx
> wrote:
> > I solved it like this:
> >
> > procmail rewrites the original X-Original-To header into X-Label.
> > This is accessible in .muttrc as %y, so .muttrc adds a custom header to
> > each out-going message Sent-To: %y, and sets 'edit_headers' to yes.
>
> I got this working up until the point where I want to substitute %y.
> I've tried various quoting operations on my_hdr, but can't seem to
> get anything but "Sent-To: %y" when composing a reply.
>
> Any help here?
>
Well, I said:
> Then my editor wrapper script reads Sent-To, converts that in to From:
> and everybody is happy.
so if that is unclear, let me quote a part of my editor wrapper script
(this is a separate shell script, called from mutt as editor):
# procmail saves the envelope-from into X-Label:, then .muttrc sets and
# Sent-To: %y attribution.
envelopeto=`grep "^Sent-To:" $file | cut -d":" -f2-`
if [ `echo $envelopeto | grep -c "@"` -gt 0 ]
then
grep -v "^From:" $file > $file.tmp
echo "From:"$envelopeto | cat - $file.tmp > $file
grep -v "^Sent-To:" $file > $file.tmp
mv $file.tmp $file
fi
Hope this helps some more,
Jurriaan
--
"You were warned, fool. Now I will teach you to profit
from such courtesies when they are offered."
Stephen R Donaldson - By Another Name
Debian (Unstable) GNU/Linux 2.6.19-rc5-mm1 2x4826 bogomips load 0.92
the Jack Vance Integral Edition: http://www.integralarchive.org
- References:
- when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient
- Re: when replying, use envelope recipient