On Friday Dec 20 2024, 'Yuri D'Elia' via mu-discuss wrote:
> On Tue, Jan 02 2024, Christophe Troestler wrote:
>> Normally, at the beginning of each multipart message, you have a line such as:
>>
>> --8<---------------cut here---------------start------------->8---
>> 1. ( ) text/plain (*) text/html
>> --8<---------------cut here---------------end--------------->8---
>>
>> You can click on the option of your choice.
>
> Excuse me for hijacking this thread :D
>
> I'd just put a comment here that I'm not superfond of how this looks,
> although I vaguely remember a discussion in github of the implementation
> details about it...
>
> I wish this was hidden, with a keybinding for toggle at best, since this
> is effectively visual noise in 99.9% of the cases. (I'm guilty of not
> trying to fix it myself, I know some properties to hide it would do.. I
> know...)
We're re-using the Gnus code for this and to be able to get information
for all attachments / inline / mime-parts etc. we need to enable some
things; which have the visual side-effect shown above; this is not
really under our control (without some hackery).
Now, one way to do it would be generate the "full" version in some
hidden buffer, and showing the civilized one, while using that hidden
buffer to extract information. But that's a bit of work, which might
happen some day...
> My reasoning is that at some point shr got good enough, and email
> clients such as outlook started to emit text/plain which is SOO
> OUTRAGEOUSLY BAD, that essentially I stopped caring about text/plain
> completely. shr output just became superior, always.
>
> Once in a while i do toggle views, just to be reminded of how far we've
> fallen in netiquette :'(
To always prefer HTML mail, you could try something like
--8<---------------cut here---------------start------------->8---
(with-eval-after-load "mm-decode"
(setq mm-discouraged-alternatives '("text/plain" "text/html")))
--8<---------------cut here---------------end--------------->8---
However, that precludes easy switching to the plain-text version.
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland