aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/POP3Store.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-03-28 08:52:05 +0000
committerVincent Richard <[email protected]>2005-03-28 08:52:05 +0000
commit9bc3121e2d11f255c514f9378598eba0a92efe73 (patch)
tree475cdefb9432249946ddb93dda08b07c897ec008 /src/messaging/POP3Store.cpp
parentFixed SConstruct to include MSVC files in dist. (diff)
downloadvmime-9bc3121e2d11f255c514f9378598eba0a92efe73.tar.gz
vmime-9bc3121e2d11f255c514f9378598eba0a92efe73.zip
Fixed POP3Store::sendPacket() for some servers.
Diffstat (limited to 'src/messaging/POP3Store.cpp')
-rw-r--r--src/messaging/POP3Store.cpp6
1 files changed, 4 insertions, 2 deletions
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);
}