mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*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:
parent
a327871d91
commit
c390f2fc0d
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue