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! Other relevant part of .muttrc, the default send-hook: send-hook '.' 'my_hdr From: Stephane Bortzmeyer <[EMAIL PROTECTED]>; unmy_hdr Reply-To; unmy_hdr X-NCC-Regid' ... send-hook '@ripe.net' 'my_hdr X-NCC-Regid: fr.gitoyen' Mutt 1.3.25i (2002-01-01) Copyright (C) 1996-2001 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: Linux 2.4.17 (i686) [using ncurses 5.2] Compile options: -DOMAIN +DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP -USE_GSS -USE_SSL +USE_GNUTLS +USE_SASL +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET ++HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_GETSID +HAVE_GETADDRINFO ISPELL="/usr/bin/ispell" SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/usr/share/mutt" SYSCONFDIR="/etc" EXECSHELL="/bin/sh" MIXMASTER="mixmaster" To contact the developers, please mail to <[EMAIL PROTECTED]>. To report a bug, please use the flea(1) utility. patch-1.3.24.rr.compressed.1 patch-1.3.24.appoct.2 patch-1.3.15.sw.pgp-outlook.1 patch-1.3.24.admcd.gnutls.1 Md.use_editor Md.paths_mutt.man Md.muttbug_no_list Md.use_etc_mailname Md.muttbug_warning Md.gpg_status_fd patch-1.2.xtitles.1 patch-1.3.23.1.ametzler.pgp_good_sign