MIME4J-333 Introducing a getSafeRaw() method in RawField (#118)

That would allow projects using the mime4j library to be able to get a raw field without it returning a null value, to protect against potential NPE, without introducing breaking changes with its core API.

The computing of the raw value in case it's null is based on what was in writeField method in DefaultMessageWriter.
5 files changed