Good afternoon, Thank you very much for your email, I didn't expect it, that's why I appreciate it.
> Steffen Nurpmeso wrote in > 20210309204740.an4hv%[email protected]: > |Noctambule wrote in > | <dLA6_e_vNCbvsTxWwOXzqadfhZtjeE0Adiqth5iYNtLqoB8WlEqgxoP0FTh0mwb91LKK0J4\ > | [email protected]>: > ... > ||>|I'm using s-nail 14.9.22 from Voidlinux and I tried to display HTML \ > ||>|emails > ... > ||>|Unfortunately, when I read a message, the HTML is simply not displayed. > | ... > ||> That looks if the HTML is part of a multipart/alternative MIME > ||> message. We always go for the text part then, but you could > ||> > ||> set mime-alternative-favour-rich > ... > ||define a define with mime-alternative-favour-rich + commandalias, > ||just to display HTML on a selected mail. Something like : > ... > ||>|plain text with the following command. It has no effect : > ||>| > ||>| set pipe-text/html=?t > > I have added (?t and) ?h type-marker support for pipe-TYPE/SUBTYPE > yesterday, so > > | define showhtml { > | \local set mime-alternative-favour-rich pipe-text/html=?h > | \type "$@" > |} > | commandalias html \\call showhtml > > will work in v14.10. Hum, I have been using the previous define variant without 'pipe-text/html=?h' with 14.9.22 for a few days, it seems to display 'text/html' part using HTML-tagsoup-to-text converter. Would you mind explain me what your 'pipe-text/html=?h' does, I am not sure I understand it ? :) > While there i saw the bug that pipe-EXTENSION as well as pipe-T/ST > do not allow further handlers to be found in case they do not fit > the bill, so to say. That is fixed on [master] etc. > > Credit to both of these changes due to you, Noctambule, than you! Oh, thanks for credit, it's great. Glad you noticed it with my stupid question. You will also find an one line patch as attachment, to add proper UTF-8 display if we use your lynx(1) example, as 'pipe-text/html'. It prevents strange glyphs. I'm not sure you'll accept it, but if you do, it's included with that mail. Have a nice sunday Kind regards N.
--- nail.1 2021-03-14 14:04:55.948458604 +0100 +++ nail.1 2021-03-14 14:05:32.365295378 +0100 @@ -1587,7 +1587,7 @@ .Bd -literal -offset indent ? if "$features" !% ,+filter-html-tagsoup, ? #set pipe-text/html='?* elinks -force-html -dump 1' -? set pipe-text/html='?* lynx -stdin -dump -force_html' +? set pipe-text/html='?* lynx -stdin -dump -force_html -display_charset=utf8' ? # Display HTML as plain text instead ? #set pipe-text/html=?t ? endif
