#2006·MailKit

Server issue compatibility: MailKit 4.16.0 connect imap.sohu.com:993 has exception for CAPABILITIES

Author: jeffreyfly2021Created Jun 6, 2026Updated Jul 14, 2026
Labelsserver-bug

Host: imap.sohu.com Port: 993 Log: Connected to imaps://imap.sohu.com:993/ S: * OK IMAP4 ready C: C00000000 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 UIDPLUS IDLE AUTH=PLAIN S: C00000000 OK completed C: C00000001 AUTHENTICATE PLAIN S: + C: ******** S: C00000001 OK LOGIN completed C: C00000002 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=LOGIN IDLE MOVE NAMESPACE S: C00000002 OK CAPABILITY completed C: C00000003 NAMESPACE S: * CAPABILITY (("" "/")) NIL NIL

Exception: Syntax error in CAPABILITIES. Unexpected token: '('

Actually it probably a server setting issue with NAMESPACE wrongly set to CAPABILITY. However, I can not escape CAPABILITY exception when I try to connect IMAP server. And its related SMTP server don't have this issue. (smtp.sohu.com:465) I can use other email apps like Outlook to access their IMAP/SMTP server without any issue. So I hope MailKit can add some compatibility for the Server configuration problem so that user can continue to use MailKit to connect email server and operate it. Thank you, Jeffrey