This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new fc1966682f [UPGRADE] MIME4J 0.8.9 -> 0.8.10 (#2058)
fc1966682f is described below
commit fc1966682f08752e2a7933e62e7a95f35942b369
Author: Benoit TELLIER <[email protected]>
AuthorDate: Wed Feb 28 03:21:16 2024 +0100
[UPGRADE] MIME4J 0.8.9 -> 0.8.10 (#2058)
---
mailbox/store/src/test/resources/eml/james-3901.json | 9 ++++++++-
pom.xml | 2 +-
.../james/jmap/draft/methods/MIMEMessageConverterTest.java | 3 +--
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/mailbox/store/src/test/resources/eml/james-3901.json
b/mailbox/store/src/test/resources/eml/james-3901.json
index bc81ce5978..bcedb73bc8 100644
--- a/mailbox/store/src/test/resources/eml/james-3901.json
+++ b/mailbox/store/src/test/resources/eml/james-3901.json
@@ -1,4 +1,11 @@
-{"attachments":[],
+{"attachments":[{
+ "mediaType":"application",
+ "subtype":"octet-stream",
+ "fileName":"4%P001!.DOC4%P001!.DOC",
+ "fileExtension":"DOC",
+ "contentDisposition":"attachment",
+ "textContent":null}
+ ],
"bcc":[],
"htmlBody":null,
"textBody":"---------------------- Forwarded by Drew Fossum/ET&S/Enron on
04/04/2001 \n01:19 PM ---------------------------\n\n\n\"Hirasuna, Robert\"
<[email protected]> on 04/04/2001 10:18:00 AM\nTo: \"Drew Fossum
(E-mail)\" <[email protected]>\ncc: \n\nSubject: Revised Draft\n\n\n
<<4%P001!.DOC>> Use this draft instead. I missed a couple of delted dashes
\non the first page.\n\nThe information contained in this e-mail message is
intended only for the \npersonal and confidentia [...]
diff --git a/pom.xml b/pom.xml
index 0df0fd6e7d..5134ccdcab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -599,7 +599,7 @@
<james.groupId>org.apache.james</james.groupId>
<james.protocols.groupId>${james.groupId}.protocols</james.protocols.groupId>
<activemq.version>5.18.3</activemq.version>
- <apache-mime4j.version>0.8.9</apache-mime4j.version>
+ <apache-mime4j.version>0.8.10</apache-mime4j.version>
<apache.openjpa.version>3.2.0</apache.openjpa.version>
<derby.version>10.14.2.0</derby.version>
<log4j2.version>2.20.0</log4j2.version>
diff --git
a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/MIMEMessageConverterTest.java
b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/MIMEMessageConverterTest.java
index 24feb19418..00e81b6b52 100644
---
a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/MIMEMessageConverterTest.java
+++
b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/methods/MIMEMessageConverterTest.java
@@ -801,7 +801,6 @@ class MIMEMessageConverterTest {
String expectedMimeType = "image/png";
String text = "123456";
String name = "ديناصور.png";
- String expectedName = EncoderUtil.encodeEncodedWord(name,
Usage.TEXT_TOKEN);
AttachmentId blodId = AttachmentId.from("blodId");
Attachment.WithBlob attachment = new Attachment.WithBlob(
@@ -829,7 +828,7 @@ class MIMEMessageConverterTest {
.hasSize(1)
.extracting(entity -> (Multipart) entity.getBody())
.flatExtracting(Multipart::getBodyParts)
- .anySatisfy(part ->
assertThat(getNameParameterValue(part)).isEqualTo(expectedName));
+ .anySatisfy(part ->
assertThat(getNameParameterValue(part)).isEqualTo(name));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]