Package: mutt Version: 1.5.9-2 Severity: normal To reproduce:
send-hook works as expected: $ echo "send-hook . 'my_hdr From: <[EMAIL PROTECTED]>'" > .muttrc.bug $ mutt -F .muttrc.bug m # start new mail recipient # To: whatever # Subject: # exit editor # observe: From is set as (your name) "<[EMAIL PROTECTED]>". # Everything's fine! q # abort mail n # do not postpone mail q # exit mutt. send2-hook doesn't: $ echo "send2-hook . 'my_hdr From: <[EMAIL PROTECTED]>'" > .muttrc.bug $ mutt -F .muttrc.bug m # start new mail recipient # To: whatever # Subject: # exit editor # observe: From IS NOT SET! q # abort mail n # do not postpone mail m # start new mail recipient2 # To: whatever2 # Subject: # exit editor # observe: From now IS set as expected ... on the second try! q # abort mail n # do not postpone mail q # exit mutt. However, send2-hook *is* being executed (at least) before and after the editor is run --- as would be expected. $ echo "send2-hook . 'running send2-hook now'" > .muttrc.bug $ mutt -F .muttrc.bug m # start new mail recipient # To: whatever # Subject: # Observe note flash by for "running: unknown command" # exit editor # Observe note flash by for "running: unknown command" q # abort mail n # do not postpone mail q # exit mutt. Thus while the hook is being run, it does not take effect, not at first ... -Wolfgang Weisselberg PS: Please be sure to Cc me at Wolfgang Weisselberg <[EMAIL PROTECTED]> as the bugtracker's mails do not seem to arrive consistently. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (101, 'testing'), (99, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.28-lvm Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages mutt depends on: ii exim [mail-transport-agent] 3.36-17 An MTA (Mail Transport Agent) ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libdb4.3 4.3.28-2 Berkeley v4.3 Database Libraries [ ii libgnutls11 1.0.16-13.1 GNU TLS library - runtime library ii libidn11 0.5.13-1.0 GNU libidn library, implementation ii libncursesw5 5.4-8 Shared libraries for terminal hand ii libsasl2 2.1.19-1.5 Authentication abstraction library Versions of packages mutt recommends: ii locales 2.3.2.ds1-22 GNU C Library: National Language ( ii mime-support 3.34-1 MIME files 'mime.types' & 'mailcap -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]