// Detect It Easy: detection rule file format
// Author: Arjan Onwezen
// Info: https://msopenspecs.azureedge.net/files/MS-PST/%5bMS-PST%5d.pdf

init("format", "Microsoft Outlook Personal Storage Table (PST)");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (Binary.getSize() > 1024) {
        if (Binary.compare("21 42 44 4E") && Binary.compare("53 4D", 8)) {
            bDetected = true;
        }
    }

    return result(bShowType, bShowVersion, bShowOptions);
}