Switch to unified view

a/src/internfile/mimehandler.cpp b/src/internfile/mimehandler.cpp
...
...
194
        }
194
        }
195
        return mhExecFactory(cfg, mtype, hs, true);
195
        return mhExecFactory(cfg, mtype, hs, true);
196
    }
196
    }
197
    }
197
    }
198
198
199
    // We are supposed to get here if there was no specific error, but
199
    // We get here if there was no specific error, but there is no
200
    // there is no identified mime type, or no handler
200
    // identified mime type, or no handler associated.
201
202
#ifdef INDEX_UNKNOWN_TEXT_AS_PLAIN
203
    // If the type is an unknown text/xxx, index as text/plain and
204
    // hope for the best (this wouldn't work too well with text/rtf...)
205
    if (mtype.find("text/") == 0) {
206
        return mhFactory("text/plain");
207
    }
208
#endif
209
201
    // associated. These files are either ignored or their name is
210
    // Finally, unhandled files are either ignored or their name is
202
    // indexed, depending on configuration
211
    // indexed, depending on configuration
203
    bool indexunknown = false;
212
    bool indexunknown = false;
204
    cfg->getConfParam("indexallfilenames", &indexunknown);
213
    cfg->getConfParam("indexallfilenames", &indexunknown);
205
    if (indexunknown) {
214
    if (indexunknown) {
206
    LOGDEB(("getMimeHandler: returning MimeHandlerUnknown\n"));
215
    LOGDEB(("getMimeHandler: returning MimeHandlerUnknown\n"));