On Tue, Jun 11, 2002 at 02:22:47PM -0400, Sweth Chandramouli wrote:
[...]
Forgive me for not responding to each part of your message, but I was
getting confused, too. One of the things to keep in mind when you're
using folder-hooks to add send-hooks is that mutt will just keep adding
new send-hooks to the end of its list of send-hooks. That can lead to
unexpected behavior and make it difficult to get the behavior you want.
One solution to that problem is to use the 'unhook send-hook' command as
the first folder-hook command, like this:
folder-hook . unhook send-hook
folder-hook folder1 send-hook . 'my_hdr From: my_folder1_address'
folder-hook folder2 send-hook . 'my_hdr From: my_folder2_address'
folder-hook . 'send-hook "~t someone_special" "unmy_hdr From:"'
folder-hook . 'send-hook "~t someone_else_special" "my_hdr From:
my_other_address"'
The idea here is to first clear all the send-hooks, then set any
folder-dependent default send-hooks, then set any folder-independent,
recipient-specific send-hooks. You can extend this idea to include
folder-dependent, recipient-specific send-hooks as well.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |