ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



Mail::SpamAssassin::Plugin::MIMEHeade Contributed Perl Documenti:SpamAssassin::Plugin::MIMEHeader(3)



NAME
       MIMEHeader - perform regexp tests against MIME headers

SYNOPSIS
         loadplugin    Mail::SpamAssassin::Plugin::MIMEHeader
         mimeheader    NAME_OF_RULE    Content-Id =~ /foo/

DESCRIPTION
       This plugin allows regexp rules to be written against MIME headers in the message.

RULE DEFINITIONS AND PRIVILEGED SETTINGS
       mimeheader NAME_OF_RULE Header-Name =~ /pattern/modifiers
           Specify a rule.  "NAME_OF_RULE" is the name of the rule to be used, "Header-Name" is the name of
           the MIME header to check, and "/pattern/modifiers" is the Perl regular expression to match
           against this.

           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.



perl v5.8.8                                      2007-05-21        Mail::SpamAssassin::Plugin::MIMEHeader(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.