1Mail::SpamAssassin::PluUgsienr::CMoInMtErHiebaudteerdM(a3Pi)elr:l:SDpoacmuAmsesnatsastiino:n:Plugin::MIMEHeader(3)
2
3
4

NAME

6       MIMEHeader - perform regexp tests against MIME headers
7

SYNOPSIS

9         loadplugin    Mail::SpamAssassin::Plugin::MIMEHeader
10         mimeheader    NAME_OF_RULE    Content-Id =~ /foo/
11

DESCRIPTION

13       This plugin allows regexp rules to be written against MIME headers in
14       the message.
15

RULE DEFINITIONS AND PRIVILEGED SETTINGS

17       mimeheader NAME_OF_RULE Header-Name =~ /pattern/modifiers
18           Specify a rule.  "NAME_OF_RULE" is the name of the rule to be used,
19           "Header-Name" is the name of the MIME header to check, and
20           "/pattern/modifiers" is the Perl regular expression to match
21           against this.
22
23           Note that in a message of multiple parts, each header will be
24           checked against the pattern separately.  In other words, if
25           multiple parts have a 'Content-Type' header, each header's value
26           will be tested individually as a separate string.
27
28           Header names are considered case-insensitive.
29
30           The header values are normally cleaned up a little; for example,
31           whitespace around the newline character in "folded" headers will be
32           replaced with a single space.  Append ":raw" to the header name to
33           retrieve the raw, undecoded value, including pristine whitespace,
34           instead.
35
36       tflags NAME_OF_RULE range=x-y
37           Match only from specific MIME parts, indexed in the order they are
38           parsed.  Part 1 = main message headers. Part 2 = next part etc.
39
40            range=1    (match only main headers, not any subparts)
41            range=2-   (match any subparts, but not the main headers)
42            range=-3   (match only first three parts, including main headers)
43            range=2-3  (match only first two subparts)
44
45       tflags NAME_OF_RULE concat
46           Concatenate all headers from all mime parts (possible range
47           applied) into a single string for matching.  This allows matching
48           headers across multiple parts with single regex.  Normally pattern
49           is tested individually for different mime parts.
50
51
52
53perl v5.38.0                      2023M-a0i7l-:2:2SpamAssassin::Plugin::MIMEHeader(3)
Impressum