Switch to unified view

a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.28 2007-01-13 10:28:37 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.29 2007-01-17 13:53:40 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
215
    Binc::HeaderItem hi;
215
    Binc::HeaderItem hi;
216
    string transcoded;
216
    string transcoded;
217
    if (doc->h.getFirstHeader("From", hi)) {
217
    if (doc->h.getFirstHeader("From", hi)) {
218
    rfc2047_decode(hi.getValue(), transcoded);
218
    rfc2047_decode(hi.getValue(), transcoded);
219
    text += string("From: ") + transcoded + string("\n");
219
    text += string("From: ") + transcoded + string("\n");
220
  if (depth == 1) {
221
      m_metaData["author"] = transcoded;
222
  }
220
    }
223
    }
221
    if (doc->h.getFirstHeader("To", hi)) {
224
    if (doc->h.getFirstHeader("To", hi)) {
222
    rfc2047_decode(hi.getValue(), transcoded);
225
    rfc2047_decode(hi.getValue(), transcoded);
223
    text += string("To: ") + transcoded + string("\n");
226
    text += string("To: ") + transcoded + string("\n");
224
    }
227
    }
...
...
243
        m_metaData["title"] = transcoded;
246
        m_metaData["title"] = transcoded;
244
    text += string("Subject: ") + transcoded + string("\n");
247
    text += string("Subject: ") + transcoded + string("\n");
245
    }
248
    }
246
    text += '\n';
249
    text += '\n';
247
250
248
    LOGDEB2(("MimeHandlerMail::rocessMsg:ismultipart %d mime subtype '%s'\n",
251
    LOGDEB2(("MimeHandlerMail::processMsg:ismultipart %d mime subtype '%s'\n",
249
        doc->isMultipart(), doc->getSubType().c_str()));
252
        doc->isMultipart(), doc->getSubType().c_str()));
250
    walkmime(doc, depth);
253
    walkmime(doc, depth);
251
254
252
    LOGDEB2(("MimeHandlerMail::processMsg:text:[%s]\n", 
255
    LOGDEB2(("MimeHandlerMail::processMsg:text:[%s]\n", 
253
        m_metaData["content"].c_str()));
256
        m_metaData["content"].c_str()));