Switch to unified view

a/src/internfile/mh_execm.cpp b/src/internfile/mh_execm.cpp
...
...
58
58
59
    // Start filter
59
    // Start filter
60
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
60
    m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
61
        "RECOLL_FILTER_FORPREVIEW=no");
61
        "RECOLL_FILTER_FORPREVIEW=no");
62
    if (m_cmd.startExec(cmd, myparams, 1, 1) < 0) {
62
    if (m_cmd.startExec(cmd, myparams, 1, 1) < 0) {
63
        m_reason = string("RECFILTERROR HELPERNOTFOUND ") + cmd;
63
        missingHelper = true;
64
        missingHelper = true;
64
        return false;
65
        return false;
65
    }
66
    }
66
    return true;
67
    return true;
67
}
68
}
...
...
86
    // Empty line (end of message) ?
87
    // Empty line (end of message) ?
87
    if (!ibuf.compare("\n")) {
88
    if (!ibuf.compare("\n")) {
88
        LOGDEB(("MHExecMultiple: Got empty line\n"));
89
        LOGDEB(("MHExecMultiple: Got empty line\n"));
89
        name = "";
90
        name = "";
90
        return true;
91
        return true;
92
    }
93
94
    // Filters will sometimes abort before entering the real protocol, ie if
95
    // a module can't be loaded. Check the special filter error first word:
96
    if (ibuf.find("RECFILTERROR ") == 0) {
97
        m_reason = ibuf;
98
        if (ibuf.find("HELPERNOTFOUND") != string::npos)
99
            missingHelper = true;
100
        return false;
91
    }
101
    }
92
102
93
    // We're expecting something like Name: len\n
103
    // We're expecting something like Name: len\n
94
    list<string> tokens;
104
    list<string> tokens;
95
    stringToTokens(ibuf, tokens);
105
    stringToTokens(ibuf, tokens);