Ignore text email parts only stating that the email should be viewed as HTML
As already discussed in #30838 some emails now contain "Your email client does not support HTML messages." in the text part and the interesting bits in the HTML part. This can be solved with the "prefer HTML" setting introduced in #30838.
We would like to propose a patch to still ignore email text parts stating "Your email client does not support HTML messages." or similar with a blacklist. This way users preferring text parts and/or not aware of the new option do not need to see those parts in Redmine.
#1 Updated by Felix Schäfer 3 months ago
- File 35679-prototype.patch added
The attached patch is a minimal implementation of a blocklist approach to ignoring text parts that only refer to the HTML part.
The second line in the Regex actually matches texts containing a link to an online version and shows how the regexes can be more complicated that just a "simple" blocklist.
We have also discussed other approaches, for example ignoring the text part if the content of the text part is several times smaller than the text content of the HTML part, this would require some bigger changes to the
Do you think this would be an improvement to Redmine? Should we also try implementing the second proposal or would the Regex-based solution be a good first step?