From 9bc3121e2d11f255c514f9378598eba0a92efe73 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 28 Mar 2005 08:52:05 +0000 Subject: Fixed POP3Store::sendPacket() for some servers. --- src/messaging/POP3Store.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/messaging/POP3Store.cpp') diff --git a/src/messaging/POP3Store.cpp b/src/messaging/POP3Store.cpp index 1ba77f8c..3129f14a 100644 --- a/src/messaging/POP3Store.cpp +++ b/src/messaging/POP3Store.cpp @@ -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); } -- cgit v1.2.3