At 14:31 -0800 14 Jan 2002, Will Yardley <[EMAIL PROTECTED]> wrote: > i'd like to use some message hooks to deal with setting / unsetting > p_c_t when replying to messages.... but i'd like to set a default > send-hook for composing new messages regardless of the message-hook. > > any suggestions? > > i'm doing stuff like this: > message-hook . 'set pgp_create_traditional' > message-hook '~h "^X-Mailer: Microsoft Outlook Express"' 'set >pgp_create_traditional' > message-hook '~h "User-Agent: Mutt"' 'unset pgp_create_traditional' > > i've tried putting: > send-hook . 'set pgp_create_traditional' > > both before and after these hooks, but that doesn't seem to be working.
Regardless of the order in which the hooks are defined, a send-hook will always be executed after any message-hooks. There's not really a way to change this. But, this would be a situation where my parent_match patch could help. It would allow you to convert the message-hooks into send-hooks, and you could then get them to execute in the correct order. http://pug.schrab.com/aaron/mutt/ -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ "Been there, done that, didnt like it threw it out" -- Alan Cox