Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.6
-
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.