htmail-view
htmail-view copied to clipboard
HTML error robustness
Hi,
I just installed htmail-view to enhance my mutt experience (previously, I opened HTML email in firefox, which was way too slow). I'm happy with the speed, but it seems to me that the webkit renderer is very picky about HTML errors in the email.
In short, many (if not most) of my received HTML emails are not viewable with htmail-view, as it results in an error like the one below:

(additionally, I get no icons, but that's a separate issue of course :-))
Now, is this a purposeful setting for the webkit render, and, if so, can it easily be changed into a more relaxed HTML parsing?
Thanks!
(fixed the icons, just a question of installing them :-)):

(This error comes from an email from Slack)
I was not able to reproduce this problem (with htmail-view 0.6). Could you please give the new release a try since it uses WebKit2. If the problem persists it would be helpful if you could post (parts of) the HTML content.
I have been using htmail-view 0.6 for a few days now, but with exactly the same problems: 99 out of 100 HTML emails can't get rendered because "this page contains the following errors". The actual errors are always different.
For example, when invoking htmail-view 0.6 on the triggered email github sent me because of your comment on this issue shows me the following:

Hi just an example of this - quite common - issue.
<body yahoo="fix" class="oma_main_body"><img width="1" height="1" src="https://www.amazon.it/gp/r.html?C=ADXNNUKWREYI&K=1JYTZQBE11ACK&
^here (after ADXNNUKWREYI&K on the = char) error on line 471 at column 121: EntityRef: expecting ';'
M=urn:rtn:msg:20230226083907d87cea52f81941a3b806d3521080p0eu&R=2N3NYLDK8XJAR&T=O&U=https%3A%2F%2Fimages-eu.ssl-images-amazon.com%2Fimages%2FG%2F01%2Fnav%2Ftransp.gif&H=FVFZHCB081ALPTDS5G2ZKNLVF8CA&ref_=pe_4061081_779727961_opens" /> `
```
Well, this is definitively not an htmail-view issue, but a problem of webkit2. I just tried using Gnome Epiphany on the same pages with identical results.