forked from jstedfast/MimeKit
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
---- commit ac26fa6 Author: Jeffrey Stedfast <[email protected]> Date: Thu Jan 16 16:44:53 2020 -0500 Fixed mailbox address parser to be more lenient about []'s in the display-name Fixes issue jstedfast#532
- Loading branch information
1 parent
e6f8c07
commit 3c3cfb0
Showing
4 changed files
with
25 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -643,6 +643,11 @@ static TestCaseData[] LegacyAddressNotCompliantWithRFC() | |
new TestCaseData ("[email protected]"), | ||
new TestCaseData ("[email protected]"), | ||
|
||
// Not compliant with RFC (Square brackets in display name) | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
|
||
// More not compliant with RFC | ||
// Does not correspond now. | ||
//new TestCaseData ("アドレス <aa\"[email protected]>"), | ||
|
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 |
---|---|---|
|
@@ -954,6 +954,11 @@ static TestCaseData[] LegacyAddressNotCompliantWithRFC () | |
new TestCaseData ("[email protected]"), | ||
new TestCaseData ("[email protected]"), | ||
|
||
// Not compliant with RFC (Square brackets in display name) | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
new TestCaseData ("[Invalid Sender] <[email protected]>"), | ||
|
||
// More not compliant with RFC | ||
// Does not correspond now. | ||
//new TestCaseData ("アドレス <aa\"[email protected]>"), | ||
|