subject-hook ?
Kevin J. McCarthy
kevin at 8t8.us
Thu Jul 29 20:23:20 UTC 2021
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20210729/b25f5bd8/attachment.asc>
More information about the Mutt-users
mailing list