|
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.33 2008-07-01 11:51:51 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.34 2008-09-16 08:13:45 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
|
|
... |
|
... |
46 |
|
46 |
|
47 |
static const int maxdepth = 20;
|
47 |
static const int maxdepth = 20;
|
48 |
static const string cstr_mimetype = "mimetype";
|
48 |
static const string cstr_mimetype = "mimetype";
|
49 |
static const string cstr_content = "content";
|
49 |
static const string cstr_content = "content";
|
50 |
static const string cstr_author = "author";
|
50 |
static const string cstr_author = "author";
|
|
|
51 |
static const string cstr_recipient = "recipient";
|
51 |
static const string cstr_modificationdate = "modificationdate";
|
52 |
static const string cstr_modificationdate = "modificationdate";
|
52 |
static const string cstr_title = "title";
|
53 |
static const string cstr_title = "title";
|
53 |
|
54 |
|
54 |
MimeHandlerMail::~MimeHandlerMail()
|
55 |
MimeHandlerMail::~MimeHandlerMail()
|
55 |
{
|
56 |
{
|
|
... |
|
... |
270 |
}
|
271 |
}
|
271 |
}
|
272 |
}
|
272 |
if (doc->h.getFirstHeader("To", hi)) {
|
273 |
if (doc->h.getFirstHeader("To", hi)) {
|
273 |
rfc2047_decode(hi.getValue(), transcoded);
|
274 |
rfc2047_decode(hi.getValue(), transcoded);
|
274 |
text += string("To: ") + transcoded + string("\n");
|
275 |
text += string("To: ") + transcoded + string("\n");
|
|
|
276 |
if (depth == 1) {
|
|
|
277 |
m_metaData[cstr_recipient] = transcoded;
|
|
|
278 |
}
|
|
|
279 |
}
|
|
|
280 |
if (doc->h.getFirstHeader("Cc", hi)) {
|
|
|
281 |
rfc2047_decode(hi.getValue(), transcoded);
|
|
|
282 |
text += string("Cc: ") + transcoded + string("\n");
|
|
|
283 |
if (depth == 1) {
|
|
|
284 |
m_metaData[cstr_recipient] += " " + transcoded;
|
|
|
285 |
}
|
275 |
}
|
286 |
}
|
276 |
if (doc->h.getFirstHeader("Date", hi)) {
|
287 |
if (doc->h.getFirstHeader("Date", hi)) {
|
277 |
rfc2047_decode(hi.getValue(), transcoded);
|
288 |
rfc2047_decode(hi.getValue(), transcoded);
|
278 |
if (depth == 1) {
|
289 |
if (depth == 1) {
|
279 |
time_t t = rfc2822DateToUxTime(transcoded);
|
290 |
time_t t = rfc2822DateToUxTime(transcoded);
|