TheFox / smtpd

SMTP server (library) for receiving emails, written in pure PHP.
https://fox21.at
MIT License
121 stars 30 forks source link

Ensure separator broken over multiple packets doesn't break smtpd #15

Closed minrwhite closed 6 years ago

minrwhite commented 6 years ago

Where the \r and the \n of the Client::MSG_SEPARATOR string appear in separate packets received from a client's socket, this is not currently handled by the Client::dataRecv() method and instead the server appears then to hang, expecting more data from the client.

This pull request allows this edge case to be handled correctly.