Greetings,
I'm trying to achieve the following 4 behaviors:
1. In the folder "stuff", use the signature file ~/.sig and the address
[EMAIL PROTECTED]
otherwise, use the default From: address and no sig
2. On any new message or replies to *@stuff.com, use the address
[EMAIL PROTECTED]
otherwise, default From: address
3. On any new message or replies From: [EMAIL PROTECTED], use the signature file
~/.sig
otherwise, no sig
4. Reply to *all* messages with the realname set to Troy Davis but using the
address that the message was sent to if it's one of my alternates -- a
halfbaked reverse_name.
Towards #1, #2, and #3, I have:
set reverse_name
set alternates=troy@(nack.net|stuff.com)
# defaults
send-hook . "unset signature"
send-hook . "set hostname='nack.com'"
# if it's To: or Cc: *@stuff.com, make it From: [EMAIL PROTECTED]
send-hook '~C stuff\.com' "set hostname='stuff.com'"
# if it's From: [EMAIL PROTECTED], use the sig
send-hook '~f troy@stuff\.com' "set signature=~/.sig"
# defaults
folder-hook . "set hostname='nack.net'"
folder-hook . "unset signature"
# if it's in the encoding folder
folder-hook =stuff "set hostname='stuff.com'"
folder-hook =stuff "set signature=~/.sig"
This has some definite inconsistencies. I think the biggest problem is that
send-hook is just that: evaluated when the message is sent. I want it to be
evaluated for the current message, when I hit reply or enter the To: address
(ie, when it puts me into the body editing).
Is there a hook like that is evaluated early enough in the message that I can
make these determinations?
I may be entirely missing something - if anyone does this or something like
it, examples are welcome.
As for #4 above, I have no idea. Do I need to code a reverse_addr?
Thanks for any help.
Cheers,
Troy