imap continuations must have a space after the "+"

prevented at least the gmail/mail (?) android app from appending a sent message
to the sent mailbox.
This commit is contained in:
Mechiel Lukkien
2023-07-24 19:54:55 +02:00
parent bc62aae0e6
commit cc4ecf2927
4 changed files with 5 additions and 5 deletions

View File

@ -566,7 +566,7 @@ func (c *conn) readCommand(tag *string) (cmd string, p *parser) {
func (c *conn) xreadliteral(size int64, sync bool) string {
if sync {
c.writelinef("+")
c.writelinef("+ ")
}
buf := make([]byte, size)
if size > 0 {
@ -2541,7 +2541,7 @@ func (c *conn) cmdAppend(tag, cmd string, p *parser) {
c.xmailbox(tx, name, "TRYCREATE")
})
if sync {
c.writelinef("+")
c.writelinef("+ ")
}
// Read the message into a temporary file.