type.inbound
and (
(
not profile.by_sender_email().solicited
and profile.by_sender_email().prevalence in ("new", "outlier")
)
or (
profile.by_sender_email().any_messages_malicious_or_spam
and not profile.by_sender_email().any_false_positives
)
or sender.email.domain.domain == "delivrto.me"
)
and any(attachments,
(
regex.imatch(.file_extension, '^[sdx]{0,1}ht[ml]{0,2}$')
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
)
and any(file.explode(.),
any(.scan.strings.strings,
strings.ilike(.,
"*$gwt_version*",
"*com.google.gwt*"
)
)
)
)
Playground
Test against your own EMLs or sample data.