Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-154

ContentHandler should rely on MimeStreamParser.setContentDecoding instead of dealing with their own transfer decoding code.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6
    • 0.7
    • None
    • None

    Description

      Both MessageBuilder and SimpleContentHandler have special code to recognize the transfer-encoding and decode the inputstream using the Base64InputStream or the QuotedPrintableInputStream. This is a worse practice as MimeStreamParser now have the setContentDecoding, so the caller should simply set that property to true and the content handler will receive decoded streams.

      We should "hide" the common task behind a single entry point. The fewer classes we ask to use to our downstream users, the easier will be to track compatibility, upgrading, and so on. If to use mime4j in basic ways people have to create classes from all of our packages then it will be a PITA.

      Attachments

        Activity

          People

            bago Stefano Bagnara
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: