Repository navigation
Conversation
QQ Mail ignores a command sent before the greeting is read. The following CAPABILITY never completes, and the socket close is reported as unexpected EOF during login.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
qqmail-cli auth logincan fail before the authorization code is checked. The CLI prints only:The account is not saved. A wrong authorization code is a different failure: that path returns
认证失败or等待 IMAP 登录响应超时, and--verboseincludes that prefix. This bug is the bareunexpected EOF.Cause
dialWithVersioncallsCapability()immediately afterimapclient.New. The client writesCAPABILITYbefore it has read the server greeting, so the command is pipelined ahead of the greeting.QQ Mail accepts the TCP/TLS connection and sends the greeting, then ignores that early command. No tagged
CAPABILITYresponse arrives. The command watchdog later closes the socket.Capability().Wait()returns a rawunexpected EOF.errmap.Classifydoes not recognize that string, so the user-facing result is the generic internal error.A direct session that waits for the greeting first receives the
CAPABILITYcompletion, and a rejectedLOGINcomes back as a normal taggedNO, within a few hundred milliseconds.Fix
Wait for the greeting before the first
CAPABILITY. If the greeting itself fails, return a network error instead of an unclassified internal error.Made with Cursor