You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MailKit.Net.Imap.ImapProtocolException: Syntax error in BODYSTRUCTURE. Unexpected token: ')'
Expected behavior
Getting no error because of the Lotus Domino syntax error, maybe having another QuirksMode implementation for this problem.
Desktop (please complete the following information):
OS: Windows 10
.Net Framework 4.6.1
Version 2.3.2.16
Do you need more of the log or is this enough for you to reproduce the problem?
I can also provide a pull request on my own if such QuirksMode implementations are desired by you using the last fix you provided (always wanted to get my feet wet in the open source community ;-) ).
Thanks!
The text was updated successfully, but these errors were encountered:
The problem seems to be the () in the BODYSTRUCTURE value in the response you posted.
According to rfc3501, the syntax for a message/rfc822 body structure is as follows (this is as much for my own info in the future if I ever have to refer back to this issue as it is to inform you if what is going wrong):
body-type-1part = (body-type-basic / body-type-msg / body-type-text)
[SP body-ext-1part]
body-type-mpart = 1*body SP media-subtype
[SP body-ext-mpart]
body-type-msg = media-message SP body-fields SP envelope
SP body SP body-fld-lines
media-message = DQUOTE "MESSAGE" DQUOTE SP DQUOTE "RFC822" DQUOTE
; Defined in [MIME-IMT]
body-fields = body-fld-param SP body-fld-id SP body-fld-desc SP
body-fld-enc SP body-fld-octets
body = "(" (body-type-1part / body-type-mpart) ")"
body-ext-1part = body-fld-md5 [SP body-fld-dsp [SP body-fld-lang
[SP body-fld-loc *(SP body-extension)]]]
; MUST NOT be returned on non-extensible
; "BODY" fetch
The problem is that a body token expects a list of values and not just () - there's gotta be a body-type-1part or a body-type-mpart within those ()'s, but there isn't.
Anyway... I guess I'll just treat () as a NULL body.
Describe the bug
Hi again :-)
I detected another incompatibility with Lotus Domino. Maybe you are able to fix this problem I am experiencing.
To Reproduce
From the logs:
I get the following exception:
MailKit.Net.Imap.ImapProtocolException: Syntax error in BODYSTRUCTURE. Unexpected token: ')'
Expected behavior
Getting no error because of the Lotus Domino syntax error, maybe having another QuirksMode implementation for this problem.
Desktop (please complete the following information):
Do you need more of the log or is this enough for you to reproduce the problem?
I can also provide a pull request on my own if such QuirksMode implementations are desired by you using the last fix you provided (always wanted to get my feet wet in the open source community ;-) ).
Thanks!
The text was updated successfully, but these errors were encountered: