<<< Date Index >>>     <<< Thread Index >>>

Re: from address



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, June 21 at 04:09 PM, quoth Kurt Lieber:
>On Wed, Jun 21, 2006 at 12:02:07PM -0400 or thereabouts, Bob Rossi wrote:
>> I would like to email most people with a from address A, and when I email
>> specific other people, I would like to use a from address B.
>
>use send-hooks:
>
>send-hook '~t gentoo-core@xxxxxxxxxx' 'set from=klieber@xxxxxxxxxx'

Close, but that particular command won't work, because by the time the 
send-hook triggers, the $from variable has already been consulted. The 
way to do it from a send-hook is to use the my_hdr command.

Because of the way hooks work, of course, you'll also need a default 
hook. Something like this will work:

set from=you@xxxxxxxx
send-hook . 'unmy_hdr From'
send-hook '~t someone@somewhere' 'my_hdr From: First Last <you@xxxxxxxxx>'

~Kyle
- -- 
You never truly understand a thing until you can explain it to your 
grandmother.
                                                    -- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFEmXWDBkIOoMqOI14RArunAKCv/gdt+hpXc5mVbPqhVIYFoDoTQgCfQZwI
A5VMCfXJb1L6keRyjL2vCjs=
=csCm
-----END PGP SIGNATURE-----