Switch to unified view

a/src/internfile/mh_execm.cpp b/src/internfile/mh_execm.cpp
...
...
16
 */
16
 */
17
#include <stdio.h>
17
#include <stdio.h>
18
18
19
#include <iostream>
19
#include <iostream>
20
#include <sstream>
20
#include <sstream>
21
using namespace std;
21
22
22
#include "cstr.h"
23
#include "cstr.h"
23
#include "mh_execm.h"
24
#include "mh_execm.h"
24
#include "mh_html.h"
25
#include "mh_html.h"
25
#include "debuglog.h"
26
#include "debuglog.h"
...
...
31
#include "idfile.h"
32
#include "idfile.h"
32
33
33
#include <sys/types.h>
34
#include <sys/types.h>
34
#include <sys/wait.h>
35
#include <sys/wait.h>
35
36
36
#ifndef NO_NAMESPACES
37
using namespace std;
38
#endif /* NO_NAMESPACES */
39
40
bool MimeHandlerExecMultiple::startCmd()
37
bool MimeHandlerExecMultiple::startCmd()
41
{
38
{
42
    LOGDEB(("MimeHandlerExecMultiple::startCmd\n"));
39
    LOGDEB(("MimeHandlerExecMultiple::startCmd\n"));
43
    if (params.empty()) {
40
    if (params.empty()) {
44
    // Hu ho
41
    // Hu ho
...
...
54
    m_config->getConfParam("membermaxkbs", &m_maxmemberkb);
51
    m_config->getConfParam("membermaxkbs", &m_maxmemberkb);
55
    ostringstream oss;
52
    ostringstream oss;
56
    oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb;
53
    oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb;
57
    m_cmd.putenv(oss.str());
54
    m_cmd.putenv(oss.str());
58
55
56
    m_cmd.putenv("RECOLL_CONFDIR", m_config->getConfDir());
59
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
57
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
60
        "RECOLL_FILTER_FORPREVIEW=no");
58
        "RECOLL_FILTER_FORPREVIEW=no");
61
59
62
    // Build parameter list: delete cmd name
60
    // Build parameter list: delete cmd name
63
    vector<string>myparams(params.begin() + 1, params.end());
61
    vector<string>myparams(params.begin() + 1, params.end());