Switch to unified view

a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp
...
...
98
98
99
    // Yes, we read the file twice. It would be possible in theory to add
99
    // Yes, we read the file twice. It would be possible in theory to add
100
    // the md5 computation to the mime analysis, but ...
100
    // the md5 computation to the mime analysis, but ...
101
    string md5, xmd5, reason;
101
    string md5, xmd5, reason;
102
    if (MD5File(fn, md5, &reason)) {
102
    if (MD5File(fn, md5, &reason)) {
103
    m_metaData["md5"] = MD5HexPrint(md5, xmd5);
103
    m_metaData[cstr_md5] = MD5HexPrint(md5, xmd5);
104
    } else {
104
    } else {
105
    LOGERR(("MimeHandlerMail: cant compute md5 for [%s]: %s\n", fn.c_str(),
105
    LOGERR(("MimeHandlerMail: cant compute md5 for [%s]: %s\n", fn.c_str(),
106
        reason.c_str()));
106
        reason.c_str()));
107
    }
107
    }
108
108
...
...
130
    LOGDEB2(("Message text: [%s]\n", msgtxt.c_str()));
130
    LOGDEB2(("Message text: [%s]\n", msgtxt.c_str()));
131
    delete m_stream;
131
    delete m_stream;
132
132
133
    string md5, xmd5;
133
    string md5, xmd5;
134
    MD5String(msgtxt, md5);
134
    MD5String(msgtxt, md5);
135
    m_metaData["md5"] = MD5HexPrint(md5, xmd5);
135
    m_metaData[cstr_md5] = MD5HexPrint(md5, xmd5);
136
136
137
    m_stream = new stringstream(msgtxt);
137
    m_stream = new stringstream(msgtxt);
138
    delete m_bincdoc;
138
    delete m_bincdoc;
139
    m_bincdoc = new Binc::MimeDocument;
139
    m_bincdoc = new Binc::MimeDocument;
140
    m_bincdoc->parseFull(*m_stream);
140
    m_bincdoc->parseFull(*m_stream);