diff options
author | Vincent Richard <[email protected]> | 2013-02-13 09:03:18 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-13 09:03:18 +0000 |
commit | fd5f0c070746b2b1634265cb4cbcdbbfbb88e6fd (patch) | |
tree | 4b283782b07071afdb09821ea2149e0b7969d417 | |
parent | Unit tests for SMTPCommand and SMTPCommandSet. Fixed SMTPCommandSet::isFinish... (diff) | |
download | vmime-fd5f0c070746b2b1634265cb4cbcdbbfbb88e6fd.tar.gz vmime-fd5f0c070746b2b1634265cb4cbcdbbfbb88e6fd.zip |
Trim first line of POP3 response to get rid of CR, if any.
-rw-r--r-- | src/net/pop3/POP3Response.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/pop3/POP3Response.cpp b/src/net/pop3/POP3Response.cpp index a48dc72f..d61e1e6d 100644 --- a/src/net/pop3/POP3Response.cpp +++ b/src/net/pop3/POP3Response.cpp @@ -324,13 +324,13 @@ bool POP3Response::stripFirstLine if (end != string::npos) { - if (firstLine) *firstLine = buffer.substr(0, end); + if (firstLine) *firstLine = utility::stringUtils::trim(buffer.substr(0, end)); result = buffer.substr(end + 1); return true; } else { - if (firstLine) *firstLine = buffer; + if (firstLine) *firstLine = utility::stringUtils::trim(buffer); result = ""; return false; } |