@@ -160,7 +160,7 @@ public void testAttachmentSize() {
160
160
assertThat (email .getAttachments ()).hasSize (2 );
161
161
assertThat (email .getAttachments ()).extracting ("name" ).containsExactly ("ForwardedMessage.eml" , "ForwardedMessage.eml" );
162
162
}
163
-
163
+
164
164
@ Test
165
165
public void testOutlookMessageWithEmptyAttachments () {
166
166
Email s1 = EmailConverter .outlookMsgToEmail (new File (RESOURCE_TEST_MESSAGES + "/#318 Email with nodata-attachment.msg" ));
@@ -401,17 +401,24 @@ public void testGithub486_InvalidSignedOutlookMessage() {
401
401
public void testGithub491_EmailWithMultiPurposeAttachments () {
402
402
Email emailMime = EmailConverter .emlToEmail (new File (RESOURCE_TEST_MESSAGES + "/#491 Email with dual purpose datasources.eml" ));
403
403
404
- assertThat (emailMime .getEmbeddedImages ()).satisfiesExactly (
404
+ assertThat (emailMime .getEmbeddedImages ()).satisfiesExactly (
405
405
at -> {
406
- at .getName ().equals ("ii_lrkua30a0" );
407
- at .getDataSource ().getName ().equals ("doclife.jpg" );
408
- });
406
+ at .getName ().equals ("ii_lrkua30a0" );
407
+ at .getDataSource ().getName ().equals ("doclife.jpg" );
408
+ });
409
409
assertThat (emailMime .getAttachments ()).satisfiesExactlyInAnyOrder (
410
410
at -> at .getName ().equals ("Il Viaggio delle Ombre.pdf" ),
411
411
at -> at .getName ().equals ("Nyan Cat! [Official]-(480p).mp4" ),
412
412
at -> at .getName ().equals ("doclife.jpg" ));
413
413
}
414
414
415
+ @ Test
416
+ public void testGithub551_ContentTransferEncodingEndsWithSpaceBug () {
417
+ Email emailMime = EmailConverter .emlToEmail (new File (RESOURCE_TEST_MESSAGES + "/#551 Email with extra space in Content-Transfer-Encoding.eml" ));
418
+
419
+ assertThat (emailMime .getContentTransferEncoding ()).isEqualTo (BIT7 );
420
+ }
421
+
415
422
@ NotNull
416
423
private List <AttachmentResource > asList (AttachmentResource attachment ) {
417
424
List <AttachmentResource > collectionAttachment = new ArrayList <>();
0 commit comments