On 16Jul2015 13:02, Chris Down <ch...@chrisdown.name> wrote:
I eventually worked this out[0].
I had previously tried using a message-hook to set alternative_order,
but that didn't work because I didn't realise that alternative_order
*appends*, it doesn't overwrite the existing alternative_order.
So, the basic solution is to call unalternative_order every time
before the message-hook is executed.
0: https://github.com/cdown/dotfiles/commit/c5927d
Yep.
Just FYI, this is mine:
message-hook . 'unalternative_order *; alternative_order text/plain
text/html'
message-hook '~h "X-Mailer: Apple Mail" ~X 1-' 'unalternative_order *;
alternative_order text/html multipart/mixed text/plain'
message-hook '%f htmlers | ~f @no-re...@cc.yahoo-inc.com | ~f @outlook.com
| ~f live.com | ~f @facebookmail.com' 'unalternative_order *; alternative_order
text/html text/plain'
In particular, I maintain a mutt group "htmlers" to track specific senders
which send useless plain text components. Keeps the condition readable.
Cheers,
Cameron Simpson <c...@zip.com.au>
The optimist proclaims that we live in the best of all possible worlds;
the pessimist fears this is true. - Branch Cabell, The Silver Stallion