Switch to unified view

a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp
...
...
257
    body = decoded;
257
    body = decoded;
258
258
259
    // Special case for text/plain content. Internfile should deal
259
    // Special case for text/plain content. Internfile should deal
260
    // with this but it expects text/plain to be utf-8 already, so we
260
    // with this but it expects text/plain to be utf-8 already, so we
261
    // handle the transcoding if needed
261
    // handle the transcoding if needed
262
    if (m_metaData[cstr_mimetype] == cstr_textplain && 
262
    if (m_metaData[cstr_mimetype] == cstr_textplain) {
263
  stringicmp(m_metaData[cstr_charset], "UTF-8")) {
264
    string utf8;
263
    string utf8;
265
    if (!transcode(body, utf8, m_metaData[cstr_charset], "UTF-8")) {
264
    if (!transcode(body, utf8, m_metaData[cstr_charset], "UTF-8")) {
266
        LOGERR(("  processAttach: transcode to utf-8 failed "
265
        LOGERR(("  processAttach: transcode to utf-8 failed "
267
            "for charset [%s]\n", m_metaData[cstr_charset].c_str()));
266
            "for charset [%s]\n", m_metaData[cstr_charset].c_str()));
268
      // Just let it through and hope for the best...
267
      // can't transcode at all -> data is garbage just erase it
268
      body.clear();
269
    } else {
269
    } else {
270
        body = utf8;
270
        body = utf8;
271
    }
271
    }
272
    }
272
    }
273
273