On Thu, Jul 29, 2021 at 06:33:10PM +0200, Andy Spiegl wrote:
I was expecting that this would work: send-hook '~s "URGENT"' 'my_hdr X-Priority: 1'
That does work. Although you'll want to make sure it's turned off in other cases by having both lines:
send-hook ~A 'unmy_hdr X-Priority' send-hook '~s URGENT' 'my_hdr X-Priority: 1'
but apparently (acc. to the man page) send-hook only matches the recipients.
A send-hook can't be use to modify the recipients or subject of the current email. But it's fine for changing user headers. See <http://www.mutt.org/doc/manual/#compose-flow> for an overview of the composition process.
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature