I can't seem to make a message-hook work, what am I doing wrong?

Kevin J. McCarthy kevin at 8t8.us
Sat Oct 30 17:06:41 UTC 2021


On Sat, Oct 30, 2021 at 10:56:12AM +0100, Chris Green wrote:
>So, I have the following lines in my muttrc file:-
>
>    auto_view text/html
>    alternative_order text/html text/plain text
>    message-hook '~f .*ilovefreegle.org.*' 'alternative_order text/plain text/html'

Each invocation of alternative_order appends to the list - it doesn't 
erase and reset the values.  You'll want to use 'unalternative_order *' 
to clear out the list.

Also, don't forget the message-hook you have above will affect that 
message and all subsequent messages, unless you have a default 
message-hook to reset values back.

-- 
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/20211030/49f92ac2/attachment.asc>


More information about the Mutt-users mailing list