--- a/src/internfile/mh_exec.cpp
+++ b/src/internfile/mh_exec.cpp
@@ -77,6 +77,8 @@
int filtermaxseconds = 900;
m_config->getConfParam("filtermaxseconds", &filtermaxseconds);
+ int filtermaxmbytes = 0;
+ m_config->getConfParam("filtermaxmbytes", &filtermaxmbytes);
if (params.empty()) {
// Hu ho
@@ -103,6 +105,7 @@
mexec.putenv("RECOLL_CONFDIR", m_config->getConfDir());
mexec.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
"RECOLL_FILTER_FORPREVIEW=no");
+ mexec.setrlimit_as(filtermaxmbytes);
int status;
try {