Benoit Tellier created JAMES-3812:
-------------------------------------
Summary: ToPlainText mailet
Key: JAMES-3812
URL: https://issues.apache.org/jira/browse/JAMES-3812
Project: James Server
Issue Type: Improvement
Components: Mailet Contributions
Reporter: Benoit Tellier
Fix For: 3.8.0
h2. Why ?
In some case converting an HTML message to plain text is desired.
Such exemples includes, but are not restricted to:
- When writing to a plain text only mailing list EG the ASF mailing lists
- Converting some potentially harmful messages (spam with high scores but also
virusses) to plain text can be seen as a way to "neutralize" them.
The feature seems generic enough to land as a generic mailet.
h2. How?
Converts
multipart/alternative
- text/html
- text/plain
into text/html (only keep this part)
Then rely on HTMLTextExtractor class to convert remaining text/html parts into
text/plain.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]