|
|
@ -306,14 +306,14 @@ void parse_body(message* msg, const HeaderSection& headers, const BodyLines& bod |
|
|
|
} |
|
|
|
|
|
|
|
}else{ // Non-MIME mail
|
|
|
|
std::cerr << "<<< NO_MIME_MAIL >>>\n"; |
|
|
|
std::cerr << "<<< NO_MIME_MAIL >>> " << body.size() << " body lines.\n"; |
|
|
|
size_t body_size = 0; |
|
|
|
for(const auto& line : body) |
|
|
|
{ |
|
|
|
body_size += line.size() + 2; |
|
|
|
} |
|
|
|
|
|
|
|
char* pbody = msg->shortmsg = new_string(nullptr, body_size); |
|
|
|
char* pbody = msg->longmsg = new_string(nullptr, body_size); |
|
|
|
|
|
|
|
for(const auto& line : body) |
|
|
|
{ |
|
|
|