Switch to unified view

a/src/internfile/mh_execm.cpp b/src/internfile/mh_execm.cpp
...
...
45
    }
45
    }
46
46
47
    // Command name
47
    // Command name
48
    string cmd = params.front();
48
    string cmd = params.front();
49
    
49
    
50
    int filtermaxmbytes = 0;
51
    m_config->getConfParam("filtermaxmbytes", &filtermaxmbytes);
52
50
    m_maxmemberkb = 50000;
53
    m_maxmemberkb = 50000;
51
    m_config->getConfParam("membermaxkbs", &m_maxmemberkb);
54
    m_config->getConfParam("membermaxkbs", &m_maxmemberkb);
52
    ostringstream oss;
55
    ostringstream oss;
53
    oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb;
56
    oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb;
54
    m_cmd.putenv(oss.str());
57
    m_cmd.putenv(oss.str());
55
58
56
    m_cmd.putenv("RECOLL_CONFDIR", m_config->getConfDir());
59
    m_cmd.putenv("RECOLL_CONFDIR", m_config->getConfDir());
57
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
60
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
58
        "RECOLL_FILTER_FORPREVIEW=no");
61
        "RECOLL_FILTER_FORPREVIEW=no");
62
63
    m_cmd.setrlimit_as(filtermaxmbytes);
59
64
60
    // Build parameter list: delete cmd name
65
    // Build parameter list: delete cmd name
61
    vector<string>myparams(params.begin() + 1, params.end());
66
    vector<string>myparams(params.begin() + 1, params.end());
62
67
63
    if (m_cmd.startExec(cmd, myparams, 1, 1) < 0) {
68
    if (m_cmd.startExec(cmd, myparams, 1, 1) < 0) {