At 2:05 PM EDT on June 7 [EMAIL PROTECTED] sent off:
> Hi,
>
> I would like to be able to use a different "from" address for some emails
> I send.
>
> This is because I have 2 email addresses, home and work.
>
> I have set up a mailbox just for my work emails, could mutt detect that I'm
> viewing a work mailbox when I hit the "m" key, and set the from address to
> my work email address?
I don't think so.
> Or is there a better condition that could be checked, like the presence of
> my works domain name in the to or cc fields maybe?
>
Yep, use send-hooks.
example:
send-hook tea@astro "my_hdr From: The Teatotaller <[EMAIL PROTECTED]>"
send-hook !tea@astro "unmy_hdr From"
send-hook tea@astro "set signature='.teasig'"
send-hook !tea@astro "set signature='/home/reid/bin/randsig1.pl |'"
send-hook !(tea|reid)@astro "my_hdr X-URL: http://astro.utoronto.ca/~reid/"
send-hook (tea|reid)@astro "unmy_hdr X-URL"
--
All realities have bugs, and it's been proven.
See _Goedel, Escher, Bach_ by Hofstadter for more details. - Jim Finnis
Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
PGP Key: http://astro.utoronto.ca/~reid/pgp.html