mail: must not reset the configured list of additional headers for each message !

This commit is contained in:
Jean-Francois Dockes
2017-10-18 15:21:43 +02:00
parent ff433087e6
commit aa56a3540e
+1 -3
View File
@@ -53,8 +53,7 @@ MimeHandlerMail::MimeHandlerMail(RclConfig *cnf, const string &id)
{ {
// Look for additional headers to be processed as per config: // Look for additional headers to be processed as per config:
vector<string> hdrnames = vector<string> hdrnames = m_config->getFieldSectNames("mail");
m_config->getFieldSectNames("mail");
if (hdrnames.empty()) if (hdrnames.empty())
return; return;
for (vector<string>::const_iterator it = hdrnames.begin(); for (vector<string>::const_iterator it = hdrnames.begin();
@@ -83,7 +82,6 @@ void MimeHandlerMail::clear()
delete *it; delete *it;
} }
m_attachments.clear(); m_attachments.clear();
m_addProcdHdrs.clear();
RecollFilter::clear(); RecollFilter::clear();
} }