Fixed POP3Store::sendPacket() for some servers.

This commit is contained in:
Vincent Richard 2005-03-28 08:52:05 +00:00
parent e01fe854d5
commit 9bc3121e2d
2 changed files with 10 additions and 2 deletions

View File

@ -2,6 +2,12 @@
VERSION 0.6.4cvs
================
2005-03-28 Vincent Richard <vincent@vincent-richard.net>
* messaging/POP3Store.cpp: fixed POP3Store::sendPacket() to send "\r\n"
in the same packet as the request. This caused problems with some
servers (thanks to Donald Dade).
2005-03-27 Stefan Uhrig <stefanuhrig@gmx.net>
* Added Windows platform handlers.

View File

@ -302,8 +302,10 @@ void POP3Store::stripResponseCode(const string& buffer, string& result)
void POP3Store::sendRequest(const string& buffer, const bool end)
{
m_socket->send(buffer);
if (end) m_socket->send("\r\n");
if (end)
m_socket->send(buffer + "\r\n");
else
m_socket->send(buffer);
}