Correct file header parsing
Add support for scanning mail cache