"MailKit.Net.Imap.ImapProtocolException: Syntax error in BODYSTRUCTURE. Unexpected token: NIL" w/ O365 #1446
Labels
compatibility
Compatibility with existing software
duplicate
This issue or pull request already exists
server-bug
The bug appears to be in the server
Hi @jstedfast,
Describe the bug
We have created a scheduled service component in .NET that customers use to fetch emails in bulk from O365 accounts. In this case, we are attempting to fetch 1k email summaries at a time. There seems to be (at least) one particular email grinding things to a hault, and throwing the "Syntax error in BODYSTRUCTURE. Unexpected token: NIL" error that has been reported/fixed many times as a one-off parsing issue. I'm hoping you could point out what is wrong with the parsing from O365 here, and devise a workaround.
Platform (please complete the following information):
Exception
Code Snippets
Protocol Logs
If I incorrectly scrubbed something, or you need the original logs/message from the email server, just let me know and I'll be happy to email them to you directly.
Thanks for the help!
Justin
The text was updated successfully, but these errors were encountered: