Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3812

ToPlainText mailet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • Mailet Contributions
    • None

    Description

      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.

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h