Joshua Weage [[EMAIL PROTECTED]] wrote:
> On Tue, Aug 31, 1999 at 09:15:16PM +0200, Thomas Roessler wrote:
> > That's not sufficient.  Remeber that variables set from within hooks
> > are persistant.
> > 
>
>       If that is the case, then anything that was changed with a send-hook
>       applies to all further messages that you send until another send-hook is
>       encountered?  IMO, that is a bad idea, and isn't mentioned in the
>       manual.

With all the stuff that send-hooks and other hooks can do, it isn't really
feasible to have them just apply one time.

> What is the appropriate send-hook to use to switch back to "normal"
> operation, yet still allow other hooks to work properly?

It's the hook mentioned in the message you originally replied to.  /All/
matching send-hooks are executed for a given message, in order.  So what
you want to do is set a default behaviour first:

send-hook . "default behaviour"

The regexp '.' matches all messages, so this will be executed for ... all
messages.  Put more specific hooks after that:

send-hook . "default behaviour"
send-hook user@somewhere "other behaviour"

This is at least mentioned in the manual in the folder-hook section.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-----------------+-------------------------+------------------------------
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

PGP signature

Reply via email to