ec_mime_parts
Last updated March 2020
Name
ec_mime_parts — test against metadata for each MIME part in a message
Synopsis
ec_mime_parts
{ comparison
} { metadata
} { value
}
Description
This test allows the metadata of every MIME part of a message to be inspected. The "metadata" attribute is extracted from each MIME part and compared to the specified "value" using the provided comparison method. Currently supported metadata attributes are:
- "filename"
if ec_mime_parts :regex "filename" "^.*\\.(scr|bat|pif|com|cpl|exe|vbs|hta|cmd|zip)$" { ec_action 550 "5.7.1 bad attachment"; }
Was this page helpful?