<<< Date Index >>>     <<< Thread Index >>>

Re: rerunning hooks



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

On Tuesday, September 23 at 10:58 AM, quoth martin f krafft:
> After re-sourcing my config, all the colouring and similar stuff 
> I do in folder_hooks is overwritten. Is it somehow possible to rerun 
> all applicable hooks as part of the resourcing?

Not really, because it's impossible to know which hooks "apply". Hooks 
are associated with actions, not with states. The send-hook applies 
whenever you attempt to *send* a message, the message-hook applies 
whenever you attempt to *view* a message, and so forth. If you are 
currently sending a message, but are relying on a setting that was set 
by viewing a message (or perhaps are relying on the fact that the last 
message you sent triggered a hook), how is mutt to know?

~Kyle
- -- 
Arguing with an engineer is like wrestling with a pig in mud, after a 
while you realize the pig is enjoying it.
                                                             -- Unknown
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkjY7bwACgkQBkIOoMqOI16jnACeJg0JrvfC8njyPf60P5Habix0
KNkAoITcpMcfA2HBNDZYfzrv6YbsGuTr
=liNm
-----END PGP SIGNATURE-----