-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
[Yandex] GetBodyPart() throws Syntax error in BODY. Unexpected token: ')'
for MimeParts with empty content
#1708
Comments
These types if exceptions are typically due to a syntax error in the server response. What I need from you is a protocol log. Specifically, the last response from the server when you get this exception. You can get a protocol log by passing in a var client = new ImapClient (new ProtocolLogger ("imap.log")); |
Please, find it in the attachment |
Here's the problem:
See the A correct response would be any of the following:
or
or
I'll see what I can do about adding a work-around. |
Syntax error in BODY. Unexpected token: ')'
for MimeParts with empty content
Discussed in #1707
Originally posted by sq5 February 12, 2024
Mailkit Version 4.3.0, mail server - Yandex
Error:
Exception has occurred: CLR/MailKit.Net.Imap.ImapProtocolException
Exception thrown: 'MailKit.Net.Imap.ImapProtocolException' in System.Private.CoreLib.dll: 'Syntax error in BODY. Unexpected token: ')''
at MailKit.Net.Imap.ImapFolder.d__213.MoveNext()
at MailKit.Net.Imap.ImapEngine.d__189.MoveNext()
at MailKit.Net.Imap.ImapCommand.d__84.MoveNext()
at MailKit.Net.Imap.ImapEngine.d__190.MoveNext()
at MailKit.Net.Imap.ImapEngine.d__191.MoveNext()
at MailKit.Net.Imap.ImapFolder.d__237.MoveNext()
at MailKit.Net.Imap.ImapFolder.GetBodyPart(UniqueId uid, String partSpecifier, CancellationToken cancellationToken, ITransferProgress progress)
at MailKit.Net.Imap.ImapFolder.GetBodyPart(UniqueId uid, BodyPart part, CancellationToken cancellationToken, ITransferProgress progress)
The text was updated successfully, but these errors were encountered: