-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mime-parsing): ensure that text content for multipart nodes alway…
…s ends with a newline. Fixes #571
- Loading branch information
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
imap-core/test/fixtures/no_empty_line_between_text_boundary.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Content-Type: multipart/mixed; boundary="------------cWFvDSey27tFG0hVYLqp9hs9" | ||
MIME-Version: 1.0 | ||
Message-ID: <[email protected]> | ||
To: [email protected] | ||
From: [email protected] | ||
Subject: test | ||
|
||
This is a multi-part message in MIME format. | ||
--------------cWFvDSey27tFG0hVYLqp9hs9 | ||
Content-Type: text/plain; charset=UTF-8; format=flowed | ||
Content-Transfer-Encoding: 7bit | ||
test | ||
--------------cWFvDSey27tFG0hVYLqp9hs9 | ||
Content-Type: text/plain; charset=UTF-8; name="example.txt" | ||
Content-Disposition: attachment; filename="example.txt" | ||
Content-Transfer-Encoding: base64 | ||
ZXhhbXBsZQo= | ||
--------------cWFvDSey27tFG0hVYLqp9hs9-- |
22 changes: 22 additions & 0 deletions
22
imap-core/test/fixtures/no_empty_line_between_text_boundary.eml.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Content-Type: multipart/mixed; boundary="------------cWFvDSey27tFG0hVYLqp9hs9" | ||
MIME-Version: 1.0 | ||
Message-ID: <[email protected]> | ||
To: [email protected] | ||
From: [email protected] | ||
Subject: test | ||
|
||
This is a multi-part message in MIME format. | ||
--------------cWFvDSey27tFG0hVYLqp9hs9 | ||
Content-Type: text/plain; charset=UTF-8; format=flowed | ||
Content-Transfer-Encoding: 7bit | ||
|
||
test | ||
|
||
--------------cWFvDSey27tFG0hVYLqp9hs9 | ||
Content-Type: text/plain; charset=UTF-8; name="example.txt" | ||
Content-Disposition: attachment; filename="example.txt" | ||
Content-Transfer-Encoding: base64 | ||
|
||
ZXhhbXBsZQo= | ||
|
||
--------------cWFvDSey27tFG0hVYLqp9hs9-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters