Re: Has the handling of my_hdr and send_hook changed between 1.10.x and 2.1.4?

2023-04-09 Thread Kevin J. McCarthy

On Sun, Apr 09, 2023 at 08:23:55PM +0100, c...@isbd.net wrote:

I'm trying to sort out why something that used to work for me no
longer works.  I just went and tried out an older installation that
still runs mutt 1.10.4 and there my send-hook/my_hdr configuration
works. It doesn't work on my current mutt 2.1.4.


Not knowingly, but a lot of the sending code has been modified in that 
period of time.



I see the documentation now says "Also note that my_hdr commands which
modify recipient headers, or the message's subject, don't have any
effect on the current message when executed from a send-hook.".  Is
this a recent change?


That applies to a my_hdr that adds a recipient header, such as To, Cc, 
Bcc.  It didn't change; the documentation for the behavior was just 
added.



This appears to no longer work.


It's working in my simple testing, so perhaps there is something more 
involved.  Can you create a small reproducing muttrc file and a list of 
exact instructions to trigger the change in behavior?


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Has the handling of my_hdr and send_hook changed between 1.10.x and 2.1.4?

2023-04-09 Thread cl
I'm trying to sort out why something that used to work for me no
longer works.  I just went and tried out an older installation that
still runs mutt 1.10.4 and there my send-hook/my_hdr configuration
works. It doesn't work on my current mutt 2.1.4.

I see the documentation now says "Also note that my_hdr commands which
modify recipient headers, or the message's subject, don't have any
effect on the current message when executed from a send-hook.".  Is
this a recent change?

I'm not doing anything very clever, I just have:-

#
#
# set default my_hdr according to which host we're on
#
send-hook . 'my_hdr From: Chris Green <$my_addr>'
#
#
# set From: address for mailing lists, not sure if it actually works on 
cheddar
#
send-hook ~l 'my_hdr From: Chris Green '

... in my muttrc file so that my From: address for use with mailing lists is
different from my default From: address.

This appears to no longer work.

How should I do this now?

-- 
Chris Green