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

Hello.  I have several e-mail accounts which all forward to this one -
however, it would be nice if I could reply with my "From: " header set
appropriately to the person I'm composing or replying to. (friends and family
get my personal [EMAIL PROTECTED] and work/school gets my
[EMAIL PROTECTED] address).

I'm trying to use a send-hook to implement this, but I've run into some
glitches.  Essentially, the rule I want to implement is "If any of the
addresses in the To: field contain caltech.edu, then use my caltech address,
otherwise, use my ideotrope.org address."

So I had two lines in my muttrc

send-hook (~t .*caltech.edu) 'my_hdr "From: [EMAIL PROTECTED]"'
send-hook (~t !.*caltech.edu) 'my_hdr "From: [EMAIL PROTECTED]"'

The !caltech.edu rule doesn't seem to do anything, and in any case, neither of
them take effect if I just compose a message out of the blue - is there some
way to make it wait to change my From: header until *after* I've gotten back
to the compose menu?

- -- 
Zane A. Crawford              ,    +      *         [EMAIL PROTECTED]
Caltech Planetary Science       .       .    +      https://ideotrope.org
BS, E&AS, Caltech 1998             __o              "War is Peace.
home : 626.585.1712              _`\<,_              Freedom is Slavery. 
work : 626.395.6981             (*)/ (*)             Ignorance is Strength."
cell : 626.437.2562                                      - Big Brother
PGP  : 0x55E0815F (request from http://pgp.mit.edu)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7u1s3nNfqE1XggV8RAkW/AKC7aySjakkUal9yiDBf7n0XEktCqwCgoXk4
9foG8wLa+f6s41r4fOHc0WM=
=aH8Q
-----END PGP SIGNATURE-----

Reply via email to