Mutt 1.7.2+59 (715c276641c6) (2016-11-26) via hg default branch ignores "my_hdr 
Bcc:" when inside a send-hook, while other my_hdr commands do take effect.

To replicate:

1. With the following .muttrc:

my_hdr Bcc: foo
send-hook test 'my_hdr From: <bar>; my_hdr Bcc: bar; my_hdr X-Test: yes'

creating a new message to "test" has headers "From: <bar>" and "X-Test: yes".
A new message to another recipient has a default From.
In every case, the message has a header "Bcc: foo".

2. With the following .muttrc (first line commented out):

#my_hdr Bcc: foo
send-hook test 'my_hdr From: <bar>; my_hdr Bcc: bar; my_hdr X-Test: yes'

creating a new message to "test" has headers "From: <bar>" and "X-Test: yes".
A new message to another recipient has a default From.
In every case, the message has no Bcc header.

Adding "unmy_hdr bcc; " before "my_hdr Bcc:" makes no difference in either case.

In the time I spent on this I have not been able to follow the logic of how 
send-hooks are processed when composing the message header, so cannot suggest 
code changes.  Pointers to the right section of code would be welcome.

-- Andras Salamon                   [email protected]

Reply via email to