This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
The following commit(s) were added to refs/heads/master by this push:
new 70a7b1ee MIME4J-284 Test unfolding with equal sign (#105)
70a7b1ee is described below
commit 70a7b1ee87b20a332aa78aeb65baff38b6a48f6b
Author: Benoit TELLIER <[email protected]>
AuthorDate: Tue May 7 15:05:36 2024 +0200
MIME4J-284 Test unfolding with equal sign (#105)
---
.../java/org/apache/james/mime4j/field/UnstructuredFieldTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/dom/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java
b/dom/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java
index 23f3b0a9..d5ac6f99 100644
--- a/dom/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java
+++ b/dom/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java
@@ -43,6 +43,14 @@ public class UnstructuredFieldTest {
Assert.assertEquals("Testing value without a leading ' '", "yada",
f.getValue());
}
+ @Test
+ public void testUnfoldWithEqualSign() throws Exception {
+ UnstructuredField f = (UnstructuredField)
DefaultFieldParser.parse("\n" +
+ "References:
<CAMpLFpB=uu_mqgwf5rtowqcfkd9cmzkboj782872ydgfp1d...@mail.gmail.com>\n" +
+ "
<CAMpLFpCVygEwb+t=FmD6TqiDLrQHkREvh=_2=zinf8wh1-y...@mail.gmail.com>\r\n");
+
Assert.assertEquals("<CAMpLFpB=uu_mqgwf5rtowqcfkd9cmzkboj782872ydgfp1d...@mail.gmail.com>
<CAMpLFpCVygEwb+t=FmD6TqiDLrQHkREvh=_2=zinf8wh1-y...@mail.gmail.com>",
f.getValue());
+ }
+
@Test
public void testGetBodyUtf8() throws Exception {
UnstructuredField f;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]