You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug AuthenticationResults.Parse Throws an error when the smtp.mailfrom address contains an "="
Platform (please complete the following information):
OS: Windows
.NET Framework: Net core 3.1
MimeKit Version: 2.9.1
To Reproduce
Run the follwing code var ar = AuthenticationResults.Parse(Encoding.ASCII.GetBytes(@"i=1; relay.mailrelay.com; dkim=pass header.d=domaina.com header.s=sfdc header.b=abcefg; dmarc=pass (policy=quarantine) header.from=domaina.com; spf=pass (relay.mailrelay.com: domain of [email protected]_sender.com designates 1.1.1.1 as permitted sender) smtp.mailfrom=support=domaina.com__0-1q6woix34obtbu@823lwd90ky2ahf.mail_sender.com"));
Currently it throws with the following Exception:
MimeKit.ParseException: Invalid propspec token at offset 315
at MimeKit.Cryptography.AuthenticationResults.TryParseMethods(Byte[] text, Int32& index, Int32 endIndex, Boolean throwOnError, AuthenticationResults authres)
at MimeKit.Cryptography.AuthenticationResults.TryParse(Byte[] text, Int32& index, Int32 endIndex, Boolean throwOnError, AuthenticationResults& authres)
at MimeKit.Cryptography.AuthenticationResults.Parse(Byte[] buffer)
at Testing.Program.Main(String[] args) in D:\other code\C#\Testing\Testing\Program.cs:line 388
at Testing.Program.<Main>(String[] args)
Expected behavior
I would expect the string to parse correctly.
The text was updated successfully, but these errors were encountered:
Describe the bug
AuthenticationResults.Parse
Throws an error when the smtp.mailfrom address contains an "="Platform (please complete the following information):
To Reproduce
Run the follwing code
var ar = AuthenticationResults.Parse(Encoding.ASCII.GetBytes(@"i=1; relay.mailrelay.com; dkim=pass header.d=domaina.com header.s=sfdc header.b=abcefg; dmarc=pass (policy=quarantine) header.from=domaina.com; spf=pass (relay.mailrelay.com: domain of [email protected]_sender.com designates 1.1.1.1 as permitted sender) smtp.mailfrom=support=domaina.com__0-1q6woix34obtbu@823lwd90ky2ahf.mail_sender.com"));
Currently it throws with the following Exception:
Expected behavior
I would expect the string to parse correctly.
The text was updated successfully, but these errors were encountered: