let mimeparse handle decoding or param values
This commit is contained in:
parent
e16ef66028
commit
804b79ee56
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.15 2006-09-05 08:05:02 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: mh_mail.cpp,v 1.16 2006-09-05 17:09:30 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -321,12 +321,11 @@ void MimeHandlerMail::walkmime(string &out, Binc::MimePart& doc, int depth)
|
|||||||
// If this is an attachment, we index the file name if any and, when
|
// If this is an attachment, we index the file name if any and, when
|
||||||
// previewing, at least show that it was there.
|
// previewing, at least show that it was there.
|
||||||
if (!stringlowercmp("attachment", content_disposition.value)) {
|
if (!stringlowercmp("attachment", content_disposition.value)) {
|
||||||
string rafn = "NoFileName", afn;
|
string afn;
|
||||||
map<string,string>::const_iterator it;
|
map<string,string>::const_iterator it;
|
||||||
it = content_disposition.params.find(string("filename"));
|
it = content_disposition.params.find(string("filename"));
|
||||||
if (it != content_type.params.end())
|
if (it != content_disposition.params.end())
|
||||||
rafn = it->second;
|
afn = it->second;
|
||||||
rfc2047_decode(rafn, afn);
|
|
||||||
out += "\n";
|
out += "\n";
|
||||||
if (m_forPreview)
|
if (m_forPreview)
|
||||||
out += "[Attachment: ";
|
out += "[Attachment: ";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user