|
a/src/internfile/internfile.cpp |
|
b/src/internfile/internfile.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.25 2007-01-17 13:53:40 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.26 2007-02-06 18:01:58 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
365 |
// error while decoding an attachment, but we still want to
|
365 |
// error while decoding an attachment, but we still want to
|
366 |
// process the rest of the mbox!
|
366 |
// process the rest of the mbox!
|
367 |
if (!m_handlers.back()->next_document()) {
|
367 |
if (!m_handlers.back()->next_document()) {
|
368 |
Rcl::Doc doc; string ipath;
|
368 |
Rcl::Doc doc; string ipath;
|
369 |
collectIpathAndMT(doc, ipath);
|
369 |
collectIpathAndMT(doc, ipath);
|
|
|
370 |
m_reason = m_handlers.back()->get_error();
|
370 |
LOGERR(("FileInterner::internfile: next_document error [%s%s%s]\n",
|
371 |
LOGERR(("FileInterner::internfile: next_document error [%s%s%s] %s\n",
|
371 |
m_fn.c_str(), ipath.empty()?"":"|", ipath.c_str()));
|
372 |
m_fn.c_str(), ipath.empty()?"":"|", ipath.c_str(),
|
|
|
373 |
m_reason.c_str()));
|
|
|
374 |
// If fetching a specific document, this is fatal
|
|
|
375 |
if (m_forPreview) {
|
|
|
376 |
return FIError;
|
|
|
377 |
}
|
372 |
popHandler();
|
378 |
popHandler();
|
373 |
continue;
|
379 |
continue;
|
374 |
}
|
380 |
}
|
375 |
|
381 |
|
376 |
// Look at what we've got
|
382 |
// Look at what we've got
|