Switch to unified view

a/src/internfile/mh_mail.cpp b/src/internfile/mh_mail.cpp
...
...
49
MimeHandlerMail::MimeHandlerMail(RclConfig *cnf, const string &mt) 
49
MimeHandlerMail::MimeHandlerMail(RclConfig *cnf, const string &mt) 
50
    : RecollFilter(cnf, mt), m_bincdoc(0), m_fd(-1), m_stream(0), m_idx(-1)
50
    : RecollFilter(cnf, mt), m_bincdoc(0), m_fd(-1), m_stream(0), m_idx(-1)
51
{
51
{
52
52
53
    // Look for additional headers to be processed as per config:
53
    // Look for additional headers to be processed as per config:
54
    list<string> hdrnames = 
54
    vector<string> hdrnames = 
55
        m_config->getFieldSectNames("mail");
55
        m_config->getFieldSectNames("mail");
56
    if (hdrnames.empty())
56
    if (hdrnames.empty())
57
        return;
57
        return;
58
    for (list<string>::const_iterator it = hdrnames.begin();
58
    for (vector<string>::const_iterator it = hdrnames.begin();
59
         it != hdrnames.end(); it++) {
59
         it != hdrnames.end(); it++) {
60
        (void)m_config->getFieldConfParam(*it, "mail", m_addProcdHdrs[*it]);
60
        (void)m_config->getFieldConfParam(*it, "mail", m_addProcdHdrs[*it]);
61
    }
61
    }
62
}
62
}
63
63