Jochen Wiedmann [Tue, 25 May 2021 10:17:06 +0000 (12:17 +0200)]
Merge pull request #40 from chibenwa/MIME4J-299
MIME4J-299 Access to the Header map
Benoit Tellier [Tue, 25 May 2021 08:25:07 +0000 (15:25 +0700)]
fixup! MIME4J-299 Access to the Header map
Benoit Tellier [Mon, 24 May 2021 11:50:27 +0000 (18:50 +0700)]
[REFACTORING] Pre-compile ContentLocationFieldImpl REGEX
Using String::replaceAll leads to recompile the regex on each calls.
Benoit Tellier [Mon, 24 May 2021 11:47:53 +0000 (18:47 +0700)]
[REFACTORING] Pre-compile EncoderUtil::quote REGEX
Using String::replaceAll leads to recompile the regex on each calls.
Benoit Tellier [Mon, 24 May 2021 10:47:50 +0000 (17:47 +0700)]
[REFACTORING] AbstractHeader was calling toLowerCase twice
This generates needless object allocation and uselessly huggs CPU
Benoit Tellier [Mon, 24 May 2021 00:30:27 +0000 (07:30 +0700)]
[REFACTORING] AbstractEntityBuilder was colling toLowerCase twice
Benoit Tellier [Sun, 23 May 2021 17:50:19 +0000 (00:50 +0700)]
[WARNING] Remove redundant string operations
Run an intelliJ inspection to sole a warning
Benoit Tellier [Tue, 25 May 2021 00:12:45 +0000 (07:12 +0700)]
MIME4J-299 Access to the Header map
Preserving the "grouped by name" structure can ease the work of callers.
Felix Knecht [Mon, 2 Nov 2015 13:43:33 +0000 (21:43 +0800)]
MIME4J-255 Add method to allow setting of "no recurse" mode to underlying mime token stream
Benoit Tellier [Wed, 21 Apr 2021 10:49:32 +0000 (17:49 +0700)]
MIME4J-297 0.8.4 release in the changelog
Benoit Tellier [Fri, 16 Apr 2021 03:30:22 +0000 (10:30 +0700)]
MIME4J-297 Merge the changelog and the release notes together, drop 0.9.0
Benoit Tellier [Fri, 16 Apr 2021 03:25:08 +0000 (10:25 +0700)]
MIME4J-297 Detail more the changelog pre-8.0.4 release
Benoit Tellier [Wed, 14 Apr 2021 06:57:28 +0000 (13:57 +0700)]
[maven-release-plugin] prepare for next development iteration
Benoit Tellier [Wed, 14 Apr 2021 06:56:45 +0000 (13:56 +0700)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.4
Jason Cobb [Tue, 30 Mar 2021 21:18:41 +0000 (17:18 -0400)]
MIME4J-296 Use Path instead of File in MboxIterator
Tellier Benoit [Tue, 30 Mar 2021 10:42:22 +0000 (17:42 +0700)]
JAMES-3226 Ignore Antora doc missing licenses (#36)
Tyler Rockwood [Tue, 30 Mar 2021 10:41:58 +0000 (05:41 -0500)]
MIME4J-290 Fix build for recent mvn and JDK versions (#35)
* [MIME4J-290] Fix build for recent mvn and JDK versions
* Remove unneed import
Tyler Rockwood [Tue, 30 Mar 2021 10:41:35 +0000 (05:41 -0500)]
MIME4J-295 Allow for overriding the specified charset when decoding q or b encoded words (#34)
* Allow for overriding the specified charset when decoding q or b encoded words.
It it very common to recieve mislabeled charsets for windows-1252, which usually end up
being ISO-8898-1. This is a minimal change allows our email servers to not have to rewrite
q-encoding, but doesn't change any default behaviors within Mime4J.
* Address review feedback
* Tighten up charset lookup method
Jason Cobb [Mon, 22 Mar 2021 16:59:51 +0000 (12:59 -0400)]
MIME4J-233 Fix ByteBufferInputStream read implementation (#33)
* Fix ByteBufferInputStream read implementation
* Check preconditions in read
* Add license to ByteBufferInputStreamTest
Eugen Stan [Thu, 30 Jul 2020 23:08:24 +0000 (02:08 +0300)]
JAMES-3226 #comment Added antora docs stub
Benoit Tellier [Mon, 6 Jul 2020 05:09:28 +0000 (12:09 +0700)]
MIME4J-273 Add limit and position to LimitedInputStream exception message
Tran Tien Duc [Wed, 4 Sep 2019 02:11:58 +0000 (09:11 +0700)]
MIME4J-289 Upgrade maven-assembly-plugin 3.0.0 -> 3.1.1
- Use goals `single` instead of `attached` by the recommendation at
http://maven.apache.org/plugins-archives/maven-assembly-plugin-2.5.5/attached-mojo.html
Tran Tien Duc [Wed, 4 Sep 2019 01:55:08 +0000 (08:55 +0700)]
MIME4J-289 Upgrade apache parent pom version 18 -> 21
Tran Tien Duc [Tue, 3 Sep 2019 11:35:26 +0000 (18:35 +0700)]
MIME4J-289 Upgrade guava 18.0 -> 28.1-jre
Tran Tien Duc [Tue, 3 Sep 2019 11:34:38 +0000 (18:34 +0700)]
MIME4J-289 Upgrade slf4j-api 1.7.7 -> 1.7.28
Tran Tien Duc [Tue, 3 Sep 2019 11:31:41 +0000 (18:31 +0700)]
MIME4J-289 Upgrade mockito 1.9.5 -> 3.0.0
Tran Tien Duc [Tue, 3 Sep 2019 11:30:36 +0000 (18:30 +0700)]
MIME4J-289 Upgrade assertj 1.7.1 -> 3.13.2
Tran Tien Duc [Tue, 3 Sep 2019 11:27:42 +0000 (18:27 +0700)]
MIME4J-289 Upgrade log4j 1.2.14 -> 1.2.17
Tran Tien Duc [Tue, 3 Sep 2019 11:23:53 +0000 (18:23 +0700)]
MIME4J-289 Upgrade junit 4.10 -> 4.12
Tran Tien Duc [Tue, 3 Sep 2019 11:22:54 +0000 (18:22 +0700)]
MIME4J-289 Upgrade common-logging 1.1.1 -> 1.2
Tran Tien Duc [Tue, 3 Sep 2019 11:21:26 +0000 (18:21 +0700)]
MIME4J-289 Upgrade common-io 2.4 -> 2.6
Tran Tien Duc [Tue, 3 Sep 2019 11:19:11 +0000 (18:19 +0700)]
MIME4J-289 Upgrade maven-jar-plugin 2.4 -> 3.1.2
Tran Tien Duc [Tue, 3 Sep 2019 11:16:51 +0000 (18:16 +0700)]
MIME4J-289 Upgrade maven-bundle-plugin 2.3.7 -> 4.2.1
Tran Tien Duc [Tue, 3 Sep 2019 11:08:50 +0000 (18:08 +0700)]
MIME4J-289 Upgrade maven-compiler-plugin 3.0 -> 3.8.1
Bowen Dai [Fri, 27 Apr 2018 17:12:32 +0000 (10:12 -0700)]
MIME4J-273 Fix encoded word splitting point for EncodeQ method as well.
Benoit Tellier [Fri, 22 Mar 2019 07:36:48 +0000 (14:36 +0700)]
MIME4J-287 Use JDK 1.8
Benoit Tellier [Fri, 22 Mar 2019 07:33:38 +0000 (14:33 +0700)]
CHANGELOG for MIME4J
Benoit Tellier [Tue, 19 Mar 2019 03:23:04 +0000 (10:23 +0700)]
CHANGELOG for MIME4J
Benoit Tellier [Thu, 14 Mar 2019 04:44:49 +0000 (11:44 +0700)]
[maven-release-plugin] prepare for next development iteration
Benoit Tellier [Thu, 14 Mar 2019 04:44:09 +0000 (11:44 +0700)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.3
Dmitry Potapov [Fri, 18 Jan 2019 15:17:43 +0000 (18:17 +0300)]
MIME4J-283 DecoderUtil performance fix
Antoine Duprat [Thu, 13 Sep 2018 06:57:47 +0000 (08:57 +0200)]
Merge remote-tracking branch 'dmak/MIME4J-280'
Dmitry Katsubo [Wed, 23 May 2018 10:25:03 +0000 (12:25 +0200)]
MIME4J-280 Wrapping the underlying exception rather then ignoring it.
Dmitry Katsubo [Tue, 22 May 2018 10:17:11 +0000 (12:17 +0200)]
MIME4J-279 Fixed JavaDoc errors to comply with Java8.
benwa [Tue, 22 May 2018 08:57:07 +0000 (15:57 +0700)]
Add the lost self link for site of Mime4J doc
Reported and fixed by https://github.com/dongxuwang
Artur Jablonski [Fri, 18 Aug 2017 09:51:40 +0000 (11:51 +0200)]
MIME4J-263 decoding encoded words with empty encoded-text
Dmitry Katsubo [Tue, 22 May 2018 07:42:07 +0000 (09:42 +0200)]
MIME4J-270 Using "alternative" as default subtype.
benwa [Fri, 27 Apr 2018 08:47:58 +0000 (15:47 +0700)]
[maven-release-plugin] prepare for next development iteration
benwa [Fri, 27 Apr 2018 08:47:22 +0000 (15:47 +0700)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.2
Bowen [Sat, 14 Apr 2018 05:15:31 +0000 (22:15 -0700)]
MIME4J-273 Update encodeB encoding bytes splitting point.
EncoderUtil.encodeIfNecessary(<unicode string>, EncoderUtil.Usage.TEXT_TOKEN, <number less than 10>) is broken in some cases, such as : https://issues.apache.org/jira/projects/MIME4J/issues/MIME4J-250?filter=allopenissues
The culprit is line
String part1 = text.substring(0, text.length() / 2);
Since the breaking point can be in between one unicode character. Once the string is breaking into two part, part1 will have a broken tail and part2 will have a broken head in this case.
Update test for failing testEncodeEncodedWordSplitForUnicode. Changed parameter is to force word split.
benwa [Mon, 9 Apr 2018 03:06:56 +0000 (10:06 +0700)]
MIME4J-272 Implicit DOM builder calls
Matthieu Baechler [Wed, 28 Mar 2018 15:01:14 +0000 (17:01 +0200)]
MIME4J-271 Make possible to define a Content-Type parameter
benwa [Tue, 13 Mar 2018 02:36:55 +0000 (09:36 +0700)]
MIME4J-269 Expose a convenient 100 Mo limited "permissive" mime config limit
This aims at remaining very permissive while still denying a single email to use all JVM memory.
benwa [Fri, 9 Mar 2018 07:29:07 +0000 (14:29 +0700)]
MIME4J-268 DefaultMessageWriter should expose a convenient *asBytes* method
benwa [Fri, 9 Mar 2018 07:23:06 +0000 (14:23 +0700)]
MIME4J-269 Introduce a Lenient default mimeConfig object
benwa [Wed, 17 Jan 2018 09:08:40 +0000 (16:08 +0700)]
MIME4J-267 DateTimeFieldLenientImpl should support date with no timezones.
benwa [Thu, 15 Jun 2017 00:58:38 +0000 (07:58 +0700)]
JAMES-1789 Remove mention to SVN
benwa [Fri, 9 Jun 2017 02:49:22 +0000 (09:49 +0700)]
[maven-release-plugin] prepare for next development iteration
benwa [Fri, 9 Jun 2017 02:48:48 +0000 (09:48 +0700)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.1
benwa [Mon, 5 Jun 2017 11:03:53 +0000 (18:03 +0700)]
JAMES-2045 DateTimeFieldImpl should assume 19xx century when date without century >= 70
benwa [Mon, 5 Jun 2017 06:54:26 +0000 (13:54 +0700)]
JAMES-2045 LenientDateTimeField should support partial years
benwa [Mon, 5 Jun 2017 02:02:30 +0000 (09:02 +0700)]
JAMES-2045 Correct DateTimeTests
benwa [Mon, 5 Jun 2017 02:01:39 +0000 (09:01 +0700)]
JAMES-2045 Improve DateTimeTest readability with assertJ messages
It was impossible to know wich dates differed before
Antoine Duprat [Fri, 2 Jun 2017 13:29:50 +0000 (15:29 +0200)]
JAMES-2045 Add century when parsing dates without
Luc DUZAN [Wed, 24 May 2017 13:09:21 +0000 (15:09 +0200)]
MIME4J-262 deprecated all MessageBuilder and replace it by Message.Builder
Luc DUZAN [Tue, 23 May 2017 13:41:16 +0000 (15:41 +0200)]
MIME4J-262 bugfix of MessageBuilder regarding getDate
Before MessageBuilder produces message that had a getDate that was returning a
non null date instead of null when the message had no "Date" header.
In order to not break old code that do not check for null value, old way to
create a builder has been kept and depreciated. Those old way return a builder
that act exactly the same than before.
New way of building a MessageBuilder has been added and do create a builder that
are not buggy anymore.
benwa [Fri, 5 May 2017 09:53:43 +0000 (16:53 +0700)]
JAMES-1900 Offer header value sanitizing out of the box
benwa [Fri, 14 Apr 2017 08:21:10 +0000 (15:21 +0700)]
JAMES-1994 correct dead link
benwa [Thu, 13 Apr 2017 07:13:12 +0000 (14:13 +0700)]
JAMES-1994 Update top bar
Tellier Benoit [Wed, 2 Nov 2016 08:57:46 +0000 (09:57 +0100)]
Merge pull request #2 from chibenwa/JAMES-1852
JAMES-1852 Reorganize MIME4J side bar
benwa [Fri, 28 Oct 2016 13:49:05 +0000 (15:49 +0200)]
JAMES-1852 Name consistently MIME4J section
benwa [Fri, 28 Oct 2016 07:07:03 +0000 (09:07 +0200)]
Adding link to mailing list
benwa [Thu, 27 Oct 2016 10:10:13 +0000 (12:10 +0200)]
JAMES-1852 Reorganize MIME4J side bar
Laura-Royet [Wed, 2 Nov 2016 08:25:41 +0000 (09:25 +0100)]
Merge pull request #1 from chibenwa/JAMES-1850
JAMES-1850 Mime4J should have same top links than James
benwa [Wed, 26 Oct 2016 12:59:52 +0000 (14:59 +0200)]
JAMES-1850 Mime4J should have same top links than James
benwa [Thu, 6 Oct 2016 21:55:55 +0000 (23:55 +0200)]
JAMES-1831 Use james-skin for rendering website
benwa [Thu, 6 Oct 2016 06:52:44 +0000 (08:52 +0200)]
JAMES-1831 Mime4J should use new logo
benwa [Wed, 12 Oct 2016 10:48:50 +0000 (12:48 +0200)]
[maven-release-plugin] prepare for next development iteration
benwa [Wed, 12 Oct 2016 10:48:15 +0000 (12:48 +0200)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.0
benwa [Wed, 12 Oct 2016 10:46:39 +0000 (12:46 +0200)]
Revert "[maven-release-plugin] prepare release apache-mime4j-project-0.8.0"
This reverts commit
2108ec9f25b40bd64e0423cc89ae01cd06f31cd6.
benwa [Wed, 12 Oct 2016 10:44:18 +0000 (12:44 +0200)]
[maven-release-plugin] prepare release apache-mime4j-project-0.8.0
benwa [Tue, 11 Oct 2016 14:27:35 +0000 (16:27 +0200)]
MIME4J-252 Apache parent pom should have version 18
benwa [Tue, 11 Oct 2016 09:57:22 +0000 (11:57 +0200)]
MIME4J SCM is now git
benwa [Mon, 10 Oct 2016 14:32:44 +0000 (16:32 +0200)]
MIME4J-252 Specify java version to 1.6
benwa [Mon, 10 Oct 2016 09:23:41 +0000 (11:23 +0200)]
MIME4J-252 mime4J should have a groupId
benwa [Mon, 3 Oct 2016 12:11:19 +0000 (14:11 +0200)]
MIME4J We should not depend on james/project
benwa [Mon, 23 May 2016 02:46:04 +0000 (09:46 +0700)]
JSIEVE-73 correcting folder name
Compilation under Eclipse is broken :
./james-utils/src/test/java/org.apache.james.mime4j.utils.search/MessageMatcherTest.java
instead of
./james-utils/src/test/java/org/apache/james/mime4j/utils/search/MessageMatcherTest.java
The maven tests pass, but compilation within an Eclipse workspace does not.
benwa [Fri, 19 Feb 2016 08:01:01 +0000 (15:01 +0700)]
MAILBOX-266 Update to guava 18.0
Benoit Tellier [Mon, 4 Jan 2016 22:36:35 +0000 (22:36 +0000)]
JSIEVE-73 Factorize code for message body matching
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1722970 13f79535-47bb-0310-9956-
ffa450edef68
Benoit Tellier [Mon, 22 Jun 2015 08:06:52 +0000 (08:06 +0000)]
MIME4J-245 Use FileUtils when deleting files - contributed by Antoine Duprat
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1686797 13f79535-47bb-0310-9956-
ffa450edef68
Benoit Tellier [Mon, 22 Jun 2015 08:06:05 +0000 (08:06 +0000)]
MIME4J-245 Don't run jar on pom packaging projects - contributed by Matthieu Baechlor
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1686796 13f79535-47bb-0310-9956-
ffa450edef68
Benoit Tellier [Mon, 22 Jun 2015 08:05:14 +0000 (08:05 +0000)]
MIME4J-245 Update maven parent to 1.8.3-SNAPSHOT - contributed by Matthieu Baechlor
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1686795 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Wed, 13 May 2015 09:24:29 +0000 (09:24 +0000)]
MIME4J-244: QP decoder incorrectly throws IOException in strict mode when LF is the first character in content stream
Contributed by Detelin Hadzhiev <detelin.hadzhiev at softwareag.com>
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1679164 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Sat, 1 Nov 2014 12:07:00 +0000 (12:07 +0000)]
Rename AddressBuilder to DefaultAddressBuilder and introduce a common interface for DefaultAddressBuilder/LenientAddressBuilder
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1635935 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Sat, 1 Nov 2014 11:21:39 +0000 (11:21 +0000)]
BasicBodyFactory to use strict mode when used by message builder to parse messages in strict mode
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1635924 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Sat, 1 Nov 2014 11:12:42 +0000 (11:12 +0000)]
MIME4J-218: improves defaultCharset handling
improves messages for limit exceptions with details about limit sizes
Contributed by Wolfgang Fahl <wf at bitplan.com>
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1635923 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Sat, 1 Nov 2014 11:12:25 +0000 (11:12 +0000)]
fixes license header
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1635922 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Fri, 31 Oct 2014 10:07:00 +0000 (10:07 +0000)]
MIME4J-218: Content-Type fallback character set
contributed by Wolfgang Fahl <wf at bitplan.com>
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1635743 13f79535-47bb-0310-9956-
ffa450edef68
Ioan Eugen Stan [Mon, 1 Sep 2014 08:52:29 +0000 (08:52 +0000)]
MIME4J-242 Added more geenric From line matcher
* #fixes MIME4J-242
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1621705 13f79535-47bb-0310-9956-
ffa450edef68
Oleg Kalnichevski [Thu, 14 Aug 2014 19:58:42 +0000 (19:58 +0000)]
Moved Message, Header and Entity implementation test cases
git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@
1618037 13f79535-47bb-0310-9956-
ffa450edef68