|
a/src/internfile/mh_execm.cpp |
|
b/src/internfile/mh_execm.cpp |
|
... |
|
... |
118 |
if (sscanf(slen.c_str(), "%d", &len) != 1) {
|
118 |
if (sscanf(slen.c_str(), "%d", &len) != 1) {
|
119 |
LOGERR(("MHExecMultiple: bad line in filter output: [%s]\n",
|
119 |
LOGERR(("MHExecMultiple: bad line in filter output: [%s]\n",
|
120 |
ibuf.c_str()));
|
120 |
ibuf.c_str()));
|
121 |
return false;
|
121 |
return false;
|
122 |
}
|
122 |
}
|
123 |
LOGDEB(("MHExecMultiple: got name [%s] len: %d\n", name.c_str(), len));
|
123 |
|
124 |
if (len / 1024 > m_maxmemberkb) {
|
124 |
if (len / 1024 > m_maxmemberkb) {
|
125 |
LOGERR(("MHExecMultiple: data len > maxmemberkb\n"));
|
125 |
LOGERR(("MHExecMultiple: data len > maxmemberkb\n"));
|
126 |
return false;
|
126 |
return false;
|
127 |
}
|
127 |
}
|
128 |
|
128 |
|
|
... |
|
... |
141 |
if (len > 0 && m_cmd.receive(*datap, len) != len) {
|
141 |
if (len > 0 && m_cmd.receive(*datap, len) != len) {
|
142 |
LOGERR(("MHExecMultiple: expected %d bytes of data, got %d\n",
|
142 |
LOGERR(("MHExecMultiple: expected %d bytes of data, got %d\n",
|
143 |
len, datap->length()));
|
143 |
len, datap->length()));
|
144 |
return false;
|
144 |
return false;
|
145 |
}
|
145 |
}
|
|
|
146 |
LOGDEB1(("MHExecMe:rdDtElt got: name [%s] len %d value [%s]\n",
|
|
|
147 |
name.c_str(), len, datap->size() > 100 ?
|
|
|
148 |
(datap->substr(0, 100) + " ...").c_str() : datap->c_str()));
|
146 |
return true;
|
149 |
return true;
|
147 |
}
|
150 |
}
|
148 |
|
151 |
|
149 |
bool MimeHandlerExecMultiple::next_document()
|
152 |
bool MimeHandlerExecMultiple::next_document()
|
150 |
{
|
153 |
{
|