This is an automated email from the ASF dual-hosted git repository.
chibenwa pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
from c9847207 fix: ignore a malformed leading duplicate Content-Type /
Content-Transfer-Encoding header so core and DOM agree (PR #137)
new 23a562ac [PERF] LenientAddressParser: do not rescan for ']' after each
unclosed '['
new d4d13f46 [PERF] DecoderUtil: stop at the first "=?" that cannot
complete an encoded word
new c5a88f2c [PERF] AddressListParser: disable JavaCC error reporting,
quadratic on long lookaheads
new 4383a37b [FIX] stop() inside a multipart: read nothing more and end
the multipart
new 76e0063c [TEST] Strict parseHeader accepts a valid multipart (#103)
new 1c7690c5 [FIX] MimeTokenStream: stop() also stops the nested entities
new 726042ff [FIX] MimeBoundaryInputStream: scan the buffered bytes before
reading more
new 4a0f8218 [FIX] QuotedPrintable: keep lone CR and LF through a decode /
encode round trip
new e377ed69 [FIX] QuotedPrintableOutputStream: encode whitespace that
ends the content
new 005f0fe7 [FIX] StructuredFieldParser: drop the backslash of a quoted
pair followed by text in a quoted string
new fbfbf0e2 [FIX] FallbackBodyDescriptorBuilder: take the charset of the
first Content-Type when none is usable
new b90149fb [FIX] RawFieldParser: a quoted pair in a quoted boundary
stands for the escaped character
new 72e2ddd7 [FIX] DefaultMessageWriter: delimit a multipart with the
Content-Type that describes the body
new a18cb891 [FIX] Fields: keep a long Content-Disposition parameter
within the line limit
new 5080ca7c [FIX] stop() in a multipart: never start a new body part
new eacd72f1 [FIX] Strict parsing: stop() in a header or before a
message/rfc822 body is not an error
new 319fe542 [FIX] RawFieldParser: a bare CR or LF is deleted, as
MimeUtil#unfold does
new 5c664e85 [FIX] Strict parsing: stop() at the start of an entity is not
an invalid header
new cea1f802 [FIX] LineReaderInputStreamAdaptor: skip(n) never skips more
than n
new d8aa6722 [FIX] RawField#getBody: delete CR and LF before decoding, as
RawFieldParser
new bf7a8fb4 [FIX] RawFieldParser: a quoted pair in a quoted charset
stands for the escaped character
new dbc108d8 [FIX] DOM builders: do not silently replace the text a
charset cannot encode
new 040d3a15 [FIX] maxContentLen: a body part does not depend on how its
source splits reads
new e9f833f1 [FIX] DefaultMessageWriter: a nested multipart does not close
an enclosing one
new 994242bd [FIX] MimeEntity: closing a body of an encapsulated message
does not close its parent
new b0c40752 [FIX] CharsetUtil#forEncoding: text its charset cannot encode
takes UTF-8
The 26 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/james/mime4j/codec/DecoderUtil.java | 8 +-
.../org/apache/james/mime4j/codec/EncoderUtil.java | 107 +++++++++++
.../mime4j/codec/QuotedPrintableInputStream.java | 5 +-
.../mime4j/codec/QuotedPrintableOutputStream.java | 17 +-
.../mime4j/io/BufferedLineReaderInputStream.java | 13 +-
.../mime4j/io/LineReaderInputStreamAdaptor.java | 2 +-
.../james/mime4j/io/MimeBoundaryInputStream.java | 38 +++-
.../stream/FallbackBodyDescriptorBuilder.java | 19 +-
.../org/apache/james/mime4j/stream/MimeEntity.java | 106 ++++++++--
.../james/mime4j/stream/MimeTokenStream.java | 6 +
.../org/apache/james/mime4j/stream/RawField.java | 28 ++-
.../apache/james/mime4j/stream/RawFieldParser.java | 82 +++++---
.../org/apache/james/mime4j/util/CharsetUtil.java | 26 +++
.../apache/james/mime4j/codec/DecoderUtilTest.java | 16 ++
.../codec/QuotedPrintableInputStreamTest.java | 7 +
.../codec/QuotedPrintableTextEncodeTest.java | 36 +++-
.../io/LineReaderInputStreamAdaptorTest.java | 24 +++
.../james/mime4j/parser/MimeStreamParserTest.java | 54 ++++++
.../stream/MimeTokenStreamContentLimitTest.java | 213 +++++++++++++++++++++
.../james/mime4j/stream/MimeTokenStreamTest.java | 79 ++++++++
.../james/mime4j/stream/RawFieldParserTest.java | 44 ++++-
.../mime4j/stream/StrictMimeTokenStreamTest.java | 141 ++++++++++++++
.../resources/mimetools-testmsgs/german-qp.out | 24 +--
.../java/org/apache/james/mime4j/dom/Message.java | 4 +-
.../java/org/apache/james/mime4j/field/Fields.java | 10 +-
.../mime4j/field/address/LenientAddressParser.java | 17 +-
.../james/mime4j/message/AbstractEntity.java | 17 +-
.../james/mime4j/message/BasicBodyFactory.java | 8 +-
.../james/mime4j/message/BodyPartBuilder.java | 4 +-
.../james/mime4j/message/DefaultMessageWriter.java | 48 ++++-
.../james/mime4j/message/MultipartBuilder.java | 6 +-
.../james/mime4j/message/SingleBodyBuilder.java | 5 +-
.../field/structured/StructuredFieldParser.jj | 10 +-
.../mime4j/field/address/AddressListParser.jjt | 1 +
.../field/BareLineBreakStrictLenientTest.java | 120 ++++++++++++
.../mime4j/field/ContentLocationFieldTest.java | 19 ++
.../mime4j/field/LenientContentTypeFieldTest.java | 22 +++
.../field/address/DefaultAddressBuilderTest.java | 14 ++
.../field/address/LenientAddressBuilderTest.java | 21 +-
.../structured/StructuredFieldParserTest.java | 8 +
.../DefaultMessageBuilderParseHeaderTest.java | 90 +++++++++
.../mime4j/message/DefaultMessageWriterTest.java | 121 ++++++++++++
.../mime4j/message/MaximalBodyDescriptorTest.java | 33 ++++
.../james/mime4j/message/MultipartBuilderTest.java | 139 ++++++++++++++
.../james/mime4j/storage/StorageBodyFactory.java | 4 +-
.../mime4j/storage/StorageBodyFactoryTest.java | 13 ++
46 files changed, 1701 insertions(+), 128 deletions(-)
create mode 100644
core/src/test/java/org/apache/james/mime4j/stream/MimeTokenStreamContentLimitTest.java
create mode 100644
dom/src/test/java/org/apache/james/mime4j/field/BareLineBreakStrictLenientTest.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]