Switch to unified view

a/src/internfile/mh_mbox.cpp b/src/internfile/mh_mbox.cpp
...
...
249
    m_ipath.erase();
249
    m_ipath.erase();
250
    m_offsets.clear();
250
    m_offsets.clear();
251
    RecollFilter::clear();
251
    RecollFilter::clear();
252
}
252
}
253
253
254
bool MimeHandlerMbox::set_document_file(const string &fn)
254
bool MimeHandlerMbox::set_document_file(const string& mt, const string &fn)
255
{
255
{
256
    LOGDEB(("MimeHandlerMbox::set_document_file(%s)\n", fn.c_str()));
256
    LOGDEB(("MimeHandlerMbox::set_document_file(%s)\n", fn.c_str()));
257
    RecollFilter::set_document_file(fn);
257
    RecollFilter::set_document_file(mt, fn);
258
    m_fn = fn;
258
    m_fn = fn;
259
    if (m_vfp) {
259
    if (m_vfp) {
260
    fclose((FILE *)m_vfp);
260
    fclose((FILE *)m_vfp);
261
    m_vfp = 0;
261
    m_vfp = 0;
262
    }
262
    }
...
...
596
    if (config == 0) {
596
    if (config == 0) {
597
    cerr << "init failed " << reason << endl;
597
    cerr << "init failed " << reason << endl;
598
    exit(1);
598
    exit(1);
599
    }
599
    }
600
    config->setKeyDir(path_getfather(filename));
600
    config->setKeyDir(path_getfather(filename));
601
    MimeHandlerMbox mh(config, "text/x-mail");
601
    MimeHandlerMbox mh(config, "some_id");
602
    if (!mh.set_document_file(filename)) {
602
    if (!mh.set_document_file("text/x-mail", filename)) {
603
    cerr << "set_document_file failed" << endl;
603
    cerr << "set_document_file failed" << endl;
604
    exit(1);
604
    exit(1);
605
    }
605
    }
606
    if (!msgnum.empty()) {
606
    if (!msgnum.empty()) {
607
    mh.skip_to_document(msgnum);
607
    mh.skip_to_document(msgnum);