alienscience / imapsrv

An IMAP server written in Go
BSD 3-Clause "New" or "Revised" License
48 stars 9 forks source link

Server must send continuation request to client #19

Open alienscience opened 9 years ago

alienscience commented 9 years ago

The new lexer tests have uncovered a problem with the handling of literals:

A literal is a sequence of zero or more octets (including CR and LF), prefix-quoted with an octet count in the form of an open brace ("{"), the number of octets, close brace ("}"), and CRLF. In the case of literals transmitted from server to client, the CRLF is immediately followed by the octet data. In the case of literals transmitted from client to server, the client MUST wait to receive a command continuation request (described later in this document) before sending the octet data (and the remainder of the command).

At the moment the server eats the literal without sending a continuation request after the first "{x}\r\n".