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.ParseException token at offset 30 #705

Closed
Kylar182 opened this issue Aug 31, 2021 · 2 comments
Closed

MimeKit.ParseException token at offset 30 #705

Kylar182 opened this issue Aug 31, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Kylar182
Copy link

Describe the bug
MimeKit.ParseException token at offset 30

Platform (please complete the following information):

  • OS: Windows 10.0.14393
  • .NET Runtime: .NET 5.0.9
  • .NET Framework: .NET 5
  • MailKit Version: 2.15.0

Exception
MimeKit.ParseException

MimeKit.ParseException: Unexpected token at offset 30
?, in void MailboxAddress.set_Address(string value)
?, in new MailboxAddress(Encoding encoding, string name, string address)

To Reproduce
Steps to reproduce the behavior:
create Mailbox Address with space in it

Expected behavior
Not throwing an error or giving more detail in the error message

Additional context
I know the reason for the error was the space at the end of one of the email addresses. I should have trimmed it but it would be nice if the error message was more descriptive or you trimmed the addresses.

@jstedfast jstedfast transferred this issue from jstedfast/MailKit Aug 31, 2021
jstedfast added a commit that referenced this issue Aug 31, 2021
Also be forgiving if there is trailing whitespace after the addr-spec
token when setting MailboxAddress.Address.

Fixes issue #705
@jstedfast jstedfast added the enhancement New feature or request label Aug 31, 2021
@craigvl
Copy link

craigvl commented Oct 20, 2021

@jstedfast When will 2.15.1 be available via nuget as I am needing the whitespace fix? All I can see is 2.15.0. Thanks.

@jstedfast
Copy link
Owner

https://www.nuget.org/packages/MimeKit/2.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants