Re: Howto run a command in message hooks
Hi Patrick!
Do you mind formating your message with a width < 80 chars?
On Wed, 24 Oct 2007, Patrick Schoenfeld wrote:
> I want to write a script that _asks_ the user, if he wants to send a
> return receipt (note how that differs from your assumption that a
> macro would be suffice. For me it wouldn't because w/o the question
> _I_ would forget to send the return receipt). Something like this
> can automatically be triggered only by message hooks. But as the
> solution is extern (= a script), how do i call it from within the
> message hook? I added a hook like this:
>
> message-hook "~h Return-Receipt-To:"
> "|/home/schoenfeld/.mutt/return_receipt"
>
> And even though the specified file is a valid executable script mutt
> says (when I open this mail in the pager):
>
> |/home/schoenfeld/.mutt/return_receipt: Unknown command
Depending on what your want try either <shell-escape> or <pipe-message>
regards,
Christian
--
f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng