[app] Skip application/mbox files greater then 10MB

Baloo_file_extractor already checks the size of test/plain files and avoids content indexing them if they are greater than 10MB.

Application/mbox files are handled by the plain/text extractor as they are a subtype of text/plain, but currently do not undergo the same check.

Mailbox files can be massive and include mime encoded content. Indexing a 100MB mbox file can push Baloo's memory requirement to 2GB, way above the 512MB cap on memory.

CCBUG: 443547 CCBUG: 447681 CCBUG: 460882

Edited by Archaeopteryx Lithographica

Merge request reports

Loading
Loading