Sync.
This commit is contained in:
1 parent
c3c9530b4b
commit
7e06591de6
15 files changed
+161
-93
No files matched your search
+7
-3
@@ -16,7 +16,7 @@ namespace coreutils {
|
||||
|
||||
bool IMFMessage::parse(PString &in) {
|
||||
|
||||
coreutils::Log(coreutils::LOG_DEBUG_1) << "Parsing-------\n" << in.str();
|
||||
Log(LOG_DEBUG_1) << "Parsing-------\n" << in.str();
|
||||
|
||||
while (!in.ifNext("\r\n")) {
|
||||
headers.emplace_back(in);
|
||||
@@ -31,9 +31,9 @@ namespace coreutils {
|
||||
if(type == "multipart/form-data")
|
||||
body = new IMFMultipart(block, getHeaderKeyPairValue("Content-Type", "boundary"));
|
||||
else if(type == "text/plain")
|
||||
body = new IMFPlainText(in);
|
||||
body = new IMFPlainText(block);
|
||||
else
|
||||
body = new IMFBody();
|
||||
body = new IMFBody(&block);
|
||||
|
||||
}
|
||||
return false;
|
||||
@@ -102,4 +102,8 @@ namespace coreutils {
|
||||
return body;
|
||||
}
|
||||
|
||||
void IMFMessage::setBody(PString *body) {
|
||||
this->body = new IMFBody(body);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user