Re: rerunning hooks
Hi,
* martin f krafft wrote:
It could pretend that it's reopening the folder, or reviewing
a message, or restarting the composing of an email, etc.
It still can't work except it completely replays every single key stroke
entered. Even then it could depend on externally defined resources (e.g.
you do source file foo whose contents could change over time). This is
because a second hook's behaviour at the time it is executed creates a
new state based the state created by the first hook and so forth.
Simply firing the appropriate folder-hooks for the folder you're in
doesn't guarantee mutts state is the one you expect. A stupid and
totally constructed example is:
set my_cnt = ''
folder-hook . 'set my_cnt=".$my_cnt"'
to "count" how many times you changed folders.
Regards, Rocco