*Core/POP3: Removed line ending at the end of multipart

git-svn-id: svn://ultimatepp.org/upp/trunk@7189 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-08 12:15:06 +00:00
parent a327871d91
commit c390f2fc0d

View file

@ -1,6 +1,6 @@
#include "POP3.h"
#define LLOG(x) DLOG(x)
#define LLOG(x) // DLOG(x)
String QDecode(const String& s)
{
@ -146,6 +146,7 @@ bool InetMessage::ReadPart(Stream& ss, int parent, int level)
bool end = false;
while(!end) {
String body;
bool next = false;
for(;;) {
if(ss.IsEof())
return false;
@ -156,7 +157,10 @@ bool InetMessage::ReadPart(Stream& ss, int parent, int level)
end = true;
break;
}
body << ln << "\r\n";
if(next)
body << "\r\n";
body << ln;
next = true;
}
StringStream nss(body);
ReadPart(nss, newparent, level + 1);