Project

General

Profile

Actions

Feature #35679

open

Ignore text email parts only stating that the email should be viewed as HTML

Added by Felix Schäfer over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

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.


Files

35679-prototype.patch (3.48 KB) 35679-prototype.patch Felix Schäfer, 2021-08-03 22:09

Related issues

Related to Redmine - Feature #34974: Change the default value for "Preferred part of multipart (HTML) emails" from "Text" to "HTML"New

Actions
Actions #1

Updated by Felix Schäfer over 3 years ago

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 mail_handler.

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?

Actions #2

Updated by Go MAEDA over 3 years ago

  • Related to Feature #34974: Change the default value for "Preferred part of multipart (HTML) emails" from "Text" to "HTML" added
Actions

Also available in: Atom PDF