remove stray CRLF from AUTHENTICATE continuations
this re-introduces6741bc94
(just a bit differently), thus effectively revertingfbfcfea5
. i suppose this extra CRLF is needed by a broken CRAM-MD5 implementation of some server, which is why it was there in the original implementation as well. however, it breaks more pedantic non-broken servers. if somebody complains, we'll need to add a much more sophisticated hack.
This commit is contained in:
parent
518b5630dc
commit
3db3f4718e
|
@ -1270,7 +1270,8 @@ imap_socket_read( void *aux )
|
||||||
ctx->trashnc = TrashKnown; /* Can't get NO [TRYCREATE] any more. */
|
ctx->trashnc = TrashKnown; /* Can't get NO [TRYCREATE] any more. */
|
||||||
p = cmdp->param.data;
|
p = cmdp->param.data;
|
||||||
cmdp->param.data = 0;
|
cmdp->param.data = 0;
|
||||||
if (socket_write( &ctx->conn, p, cmdp->param.data_len, GiveOwn ) < 0)
|
if (socket_write( &ctx->conn, p, cmdp->param.data_len, GiveOwn ) < 0 ||
|
||||||
|
socket_write( &ctx->conn, "\r\n", 2, KeepOwn ) < 0)
|
||||||
return;
|
return;
|
||||||
} else if (cmdp->param.cont) {
|
} else if (cmdp->param.cont) {
|
||||||
if (cmdp->param.cont( ctx, cmdp, cmd ))
|
if (cmdp->param.cont( ctx, cmdp, cmd ))
|
||||||
|
@ -1279,8 +1280,6 @@ imap_socket_read( void *aux )
|
||||||
error( "IMAP error: unexpected command continuation request\n" );
|
error( "IMAP error: unexpected command continuation request\n" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (socket_write( &ctx->conn, "\r\n", 2, KeepOwn ) < 0)
|
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
tag = atoi( arg );
|
tag = atoi( arg );
|
||||||
for (pcmdp = &ctx->in_progress; (cmdp = *pcmdp); pcmdp = &cmdp->next)
|
for (pcmdp = &ctx->in_progress; (cmdp = *pcmdp); pcmdp = &cmdp->next)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user