This should fix the multiple-line problem.

This commit is contained in:
Sterling Hughes 2000-09-05 00:26:15 +00:00
parent efdd39207c
commit 9a2726e208

View File

@ -493,9 +493,12 @@ int Ack()
/* Check for newline */
Index += rlen;
if ((buf[Received - 2] != '\r') || (buf[Received - 1] != '\n'))
if ((buf[Received - 4] == ' ' && buf[Received - 3] == '-') ||
(buf[Received - 2] != '\r') || (buf[Received - 1] != '\n'))
/* err_msg fprintf(stderr,"Incomplete server message. Awaiting CRLF\n"); */
goto again; /* Incomplete data. Line must be terminated by CRLF */
goto again; /* Incomplete data. Line must be terminated by CRLF
And not contain a space followed by a '-' */
if (buf[0] > '3')
return (SMTP_SERVER_ERROR);