#3986: send-hook for Cc and Bcc executed too late ------------------------------+---------------------- Reporter: alahouze | Owner: mutt-dev Type: defect | Status: new Priority: major | Milestone: Component: mutt | Version: Keywords: send-hook my_hdr | ------------------------------+---------------------- Hi,
I have a hook to initialize Cc on new mails only: {{{ send-hook !~Q 'my_hdr Cc: Contact Example <cont...@example.com>' }}} When I create a new mail for the first time, Cc header is not initialized. When I create a second new mail, it is. I also have a folder hook to reset send hook (I have a multi account configuration, each one in a separate folder). Let's say account1 for the one I want Cc on new mails and account2 for the other one. 1. I make a new mail on account1: Cc is not initialized but should be 2. I make another new mail on account1: Cc is initialized 3. Then I make a mail on account2: Cc is initialized but should not be 4. Finally I make another new mail on account2: Cc is not initialized It seems the hook is run after the mail edition. I am using neomutt, so I discussed about it with flatcap on #neomutt@freenode who confirmed the bug for Cc and Bcc headers, and confirmed it on upstream mutt too and so he asked me to open a new ticket here, so here it is. -- Ticket URL: <https://dev.mutt.org/trac/ticket/3986> Mutt <http://www.mutt.org/> The Mutt mail user agent