-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
ImapClient.ConnectAsync fails in v4.2.0: Syntax error in CAPABILITIES. Unexpected token: '+' #1654
Comments
Darn, was afraid of this... can you provide the protocol log so that I can fix this properly? using var imapClient = new ImapClient(new ProtocolLogger ("imap.log")); |
here's the log (Replaced the hostname with
|
Does this happen to be imaps://mail.infomaniak.com:993/ like in the other bug report I just marked as a duplicate of this one?
That said, I'm sure I can whip up a fix for you guys. |
In about an hour (maybe less), https://www.myget.org/feed/mimekit/package/nuget/MailKit should have a v4.2.0.836 that you can install to test this fix. Let me know if you run into any other issues. Thanks! |
No we get a new exception System.InvalidCastException: Unable to cast object of type 'System.Char' to type 'System.String'. |
d'oh, thanks. |
Just pushed a fix for that. It should be v4.2.0.837 when it gets uploaded to myget |
It works, I don't have any exception, thank for your reactivity |
@jstedfast thanks for the fix (or workaround). works for us too. |
This was released as part of MailKit v4.3.0 |
The ImapClient fails on ConnectAsync after we updated the nuget from 4.1.0 to 4.2.0 with the message:
Syntax error in CAPABILITIES. Unexpected token: '+'
We tested with different servers (e.g. outlook.office365.com)
Platform
Exception
Syntax error in CAPABILITIES. Unexpected token: '+' ---> MailKit.Net.Imap.ImapProtocolException: Syntax error in CAPABILITIES. Unexpected token: '+'
ImapEngine.UpdateCapabilitiesAsync(ImapTokenType sentinel, CancellationToken cancellationToken)
ImapEngine.ProcessUntaggedResponseAsync(CancellationToken cancellationToken)
ImapCommand.StepAsync()
ImapEngine.IterateAsync()
ImapEngine.RunAsync(ImapCommand ic)
ImapClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
ImapClient.CreateImapClientAsync(CancellationToken cancellationToken) line 128
Code Snippets
The text was updated successfully, but these errors were encountered: