Switch to unified view

a/src/internfile/mimehandler.cpp b/src/internfile/mimehandler.cpp
...
...
272
    }
272
    }
273
273
274
    // We get here if there was no specific error, but there is no
274
    // We get here if there was no specific error, but there is no
275
    // identified mime type, or no handler associated.
275
    // identified mime type, or no handler associated.
276
276
277
#ifdef INDEX_UNKNOWN_TEXT_AS_PLAIN
278
    // If the type is an unknown text/xxx, index as text/plain and
279
    // hope for the best (this wouldn't work too well with text/rtf...)
280
    if (mtype.find("text/") == 0) {
281
        h = mhFactory(cstr_textplain);
282
  goto out;
283
    }
284
#endif
285
286
    // Finally, unhandled files are either ignored or their name and
277
    // Finally, unhandled files are either ignored or their name and
287
    // generic metadata is indexed, depending on configuration
278
    // generic metadata is indexed, depending on configuration
288
    {bool indexunknown = false;
279
    {bool indexunknown = false;
289
    cfg->getConfParam("indexallfilenames", &indexunknown);
280
    cfg->getConfParam("indexallfilenames", &indexunknown);
290
    if (indexunknown) {
281
    if (indexunknown) {