It's not an error in your muttrc, send-hooks have never been executed in batch mode. Off hand I can't remember why this is (perhaps there is no good reason).
On Thu, May 02, 2002 at 02:06:56PM +0200, Stephane Bortzmeyer wrote: > I have a send-hook which seems to work fine: > send-hook '@ripe.net' 'my_hdr X-NCC-Regid: fr.gitoyen' > for interactive use. > But when I use mutt with the standard input redirected from a program: > dosomething | mutt -s MODIFY [EMAIL PROTECTED] > the custom header is not appended at all. If I replace the send-hook > by a direct call to my_hdr, it works. So, there is something wrong in > the send-hook which manifests itself only when standard input is a > program!