You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2022/08/31 14:35:00 UTC

[jira] [Created] (JAMES-3812) ToPlainText mailet

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org