Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MimeKit fails to parse a "corrupt" email id #889

Closed
Sicos1977 opened this issue Feb 21, 2023 · 2 comments
Closed

MimeKit fails to parse a "corrupt" email id #889

Sicos1977 opened this issue Feb 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Sicos1977
Copy link

Sicos1977 commented Feb 21, 2023

I used the latest nuget version on .net 4.8.

Sometimes we get e-mails from united airlines that generate very weird and corrupt id's. Is it possible to modify the mimekit code so that it is more tollerant to these kind of email id's ... even when they are corrupted like hell.

In this case we get an e-mail with this id.

Message-ID: <15627601.388658.1676916781911.JavaMail."[email protected]"@xxxxxxx.ual.com>

I removed some names from the id and replaced it with xxxxx but that makes no difference for testing.

This is the error I get in my own code because the id is in this case returning null

Value cannot be null.
Parameter name: emailId
jstedfast added a commit that referenced this issue Feb 21, 2023
@jstedfast
Copy link
Owner

This is an actual bug in MimeKit and not technically a bug in the sending client (as odd as it might look).

Looks like I introduced this in a previous attempt to make the Message-Id parser more lenient.

Should be fixed now.

@jstedfast jstedfast added the bug Something isn't working label Feb 21, 2023
@Sicos1977
Copy link
Author

Thanks for fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants