Hi,
according to the manual:
Usage: send-hook [!]pattern command
This command can be used to execute arbitrary configuration commands
based upon recipients of the message. pattern is a regular expression
matching the desired address. command is executed when regexp matches
recipients of the message. When multiple matches occur, commands are
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
executed in the order they are specified in the muttrc.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So, I tried the following:
macro generic \e0 "!~/sigscript\r"
send-hook '~C anyone@anyplace\.com' "push \e0"
send-hook '~C anyone@anyplace\.com' "set signature=~/timeup.sig"
sigscript is a script that calls the command `uptime` and copies it to
file called timeup.sig. The problem here is that \e0 is executed only when
I quit the message edition, so timeup.sig is not updated before being
used as the signature file.
If there's a better way to get this, I'd like to know, but would also
like to know why these hooks are not running in the supposed order.
TIA
--
Horacio LC_mutt=es_ES
mailto:[EMAIL PROTECTED] http://carlotha.ciberia.es/mutt/
~ Spain ~ Spanje ~ Spanien