--- a/src/internfile/mh_html.cpp
+++ b/src/internfile/mh_html.cpp
@@ -122,8 +122,12 @@
m_metaData["charset"] = "utf-8";
m_metaData["title"] = result.title;
m_metaData["keywords"] = result.keywords;
- m_metaData["author"] = result.author;
- m_metaData["modificationdate"] = result.dmtime;
+ // Avoid setting empty values which would crush ones possibly inherited
+ // from parent (if we're an attachment)
+ if (!result.author.empty())
+ m_metaData["author"] = result.author;
+ if (!result.dmtime.empty())
+ m_metaData["modificationdate"] = result.dmtime;
m_metaData["sample"] = result.sample;
m_metaData["mimetype"] = "text/plain";
return true;