Browse Source

simpler code. :-)

MIME-10
Roker 2 years ago
parent
commit
7243c12bae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/bodyparser.cc

+ 1
- 1
src/bodyparser.cc View File

@ -240,7 +240,7 @@ void parse_body(message* msg, const HeaderSection& headers, const BodyLines& bod
}else{ // Non-MIME mail
LOG << "<<< NO_MIME_MAIL >>> " << body.size() << " body lines.\n";
sv combined_body = combineLines(body);
if(isUtf8(combined_body.data(), combined_body.data()+combined_body.size()) )
if(isUtf8(combined_body.begin(), combined_body.end()) )
{
const std::string& nfc_string = toNFC( combined_body ); // FIXME: double copy! :-((
msg->longmsg = new_string(nfc_string.c_str(), nfc_string.size()); // FIXME: 3rd copy! :-(((


Loading…
Cancel
Save