On Sat, Oct 30, 2021 at 09:05:18PM +0100, Chris Green wrote: > On Sat, Oct 30, 2021 at 10:06:41AM -0700, Kevin J. McCarthy wrote: > > 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. > > > That would explain it! Thank you. > > > > 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. > > > Yes, I was aware that I hadn't done that as required. > Well I now have:-
auto_view text/html unalternative_order message-hook ~A "alternative_order text/html text/plain text" message-hook '~f ilovefreegle.org' 'unalternative_order' message-hook '~f ilovefreegle.org' 'alternative_order text/plain text/html' ... and it's still not working. Obviously I'm still misunderstanding something! Here's the relevant bit of the header of a message I'm trying to match and use the text/plain part:- From: Chris <replyto-85018331-95...@users.ilovefreegle.org> To: Chris <c...@isbd.net> ... and just to prove there is a text/plain part to view:- -> I 1 <no description> [multipa/alternativ, 7bit, 29K] I 2 ├─><no description> [text/plain, quoted, utf-8, 0.2K] I 3 └─><no description> [text/html, base64, utf-8, 28K] (you can see why I prefer the text/plain version!) -- Chris Green