Mail::SpamAssassin::Plugin::MIMEHeader(3pm) | User Contributed Perl Documentation | Mail::SpamAssassin::Plugin::MIMEHeader(3pm) |
MIMEHeader - perform regexp tests against MIME headers
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader mimeheader NAME_OF_RULE Content-Id =~ /foo/
This plugin allows regexp rules to be written against MIME headers in the message.
Note that in a message of multiple parts, each header will be checked against the pattern separately. In other words, if multiple parts have a 'Content-Type' header, each header's value will be tested individually as a separate string.
Header names are considered case-insensitive.
The header values are normally cleaned up a little; for example, whitespace around the newline character in "folded" headers will be replaced with a single space. Append ":raw" to the header name to retrieve the raw, undecoded value, including pristine whitespace, instead.
range=1 (match only main headers, not any subparts) range=2- (match any subparts, but not the main headers) range=-3 (match only first three parts, including main headers) range=2-3 (match only first two subparts)
2024-04-12 | perl v5.38.2 |