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

ToMailboxAddress fails too often with Exceptions when parsing response from Microsoft Exchange Server Imap #1451

Closed
ekalchev opened this issue Oct 18, 2022 · 3 comments
Labels
bug Something isn't working compatibility Compatibility with existing software

Comments

@ekalchev
Copy link
Contributor

I see that when fetching data from mailbox hosted on outlook.com, hotmail.com and etc (Microsoft Exchange Server Imap)
MailKit throws thousand of exceptions. I see a lot of these lines coming from microsoft servers

S: * 2 FETCH (UID 3 FLAGS (\Seen) INTERNALDATE "27-Jan-2021 11:56:15 +0200" RFC822.SIZE 12006 ENVELOPE (NIL "Retrieval using the IMAP4 protocol failed for the following message: 3" (("Microsoft Exchange Server" NIL NIL ".MISSING-HOST-NAME.")) NIL NIL (("[email protected]" NIL "username" "testdomain.com")) NIL NIL NIL NIL) BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 1 1 NIL NIL NIL NIL) BODY[HEADER.FIELDS (IMPORTANCE RECEIVED X-PRIORITY REFERENCES)] {2}

It seems that is common scenario for these popular servers and may be it is not good idea to throw exceptions for those. This will improve MailKit integration with Microsoft Exchange Imap.

@ekalchev ekalchev changed the title ToMailboxAddress fails to often with Exceptions ToMailboxAddress fails often with Exceptions when parsing response from Microsoft Exchange Server Imap Oct 18, 2022
@ekalchev ekalchev changed the title ToMailboxAddress fails often with Exceptions when parsing response from Microsoft Exchange Server Imap ToMailboxAddress fails too often with Exceptions when parsing response from Microsoft Exchange Server Imap Oct 18, 2022
@jstedfast jstedfast added bug Something isn't working compatibility Compatibility with existing software labels Oct 18, 2022
@jstedfast
Copy link
Owner

Would it be possible to find out what the actual Sender/From addresses are when you get:

("Microsoft Exchange Server" NIL NIL ".MISSING-HOST-NAME.")

Hoping to reconstruct this the way it is in the actual message.

@ekalchev
Copy link
Contributor Author

I am not aware of any way to do that

jstedfast added a commit that referenced this issue Oct 23, 2022
@jstedfast
Copy link
Owner

Don't worry about it. It is probably something like Microsoft Exchange Server <>

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

No branches or pull requests

2 participants