Switch to side-by-side view
--- a/src/internfile/mh_mail.cpp +++ b/src/internfile/mh_mail.cpp @@ -507,7 +507,12 @@ it = content_disposition.params.find(string("filename")); if (it != content_disposition.params.end()) filename = it->second; - + if (filename.empty()) { + it = content_type.params.find(string("name")); + if (it != content_type.params.end()) + filename = it->second; + } + if (doc->isMessageRFC822()) { LOGDEB2(("walkmime: message/RFC822 part\n"));