type.inbound
and any(attachments,
.file_type == "pdf"
and (
strings.icontains(beta.parse_exif(.).producer, 'MuhammaraJS')
or strings.icontains(beta.parse_exif(.).creator, 'Hummus-Recipe')
)
//
// This rule makes use of a beta feature and is subject to change without notice
// using the beta feature in custom rules is not suggested until it has been formally released
//
and any(beta.parse_exif(.).fields, .key == "Source-Producer")
and beta.parse_exif(.).page_count <= 4
//
// This rule makes use of a beta feature and is subject to change without notice
// using the beta feature in custom rules is not suggested until it has been formally released
//
and regex.icontains(beta.ocr(.).text,
'irs\.gov/form',
'request for taxpayer',
'identification number and certification',
'form\s*w-?9\b'
)
)
Playground
Test against your own EMLs or sample data.