Cisco Cisco Email Security Appliance X1050 Guía Del Usuario
9-70
Cisco AsyncOS 9.1 for Email User Guide
Chapter 9 Using Message Filters to Enforce Email Policies
Message Filter Actions
The insert-header() action allows the use of non-ASCII characters in the text of the header, while
restricting the header name to be ASCII (to comply with standards). The transport encoding will be
quoted-printable to maximize the readability.
restricting the header name to be ASCII (to comply with standards). The transport encoding will be
quoted-printable to maximize the readability.
Note
The
strip-headers
and
insert-header
actions can be used in combination to rewrite any message
headers in the original message. In some case, it is valid to have multiple instances of the same header
(for example,
(for example,
Received:
) where in other cases, multiple instances of the same header could confuse a
MUA (for example, multiple Subject: headers.)
When working with headers, remember that the current value of the header includes changes made
during processing (such as with filter actions that add, remove, or modify message headings). See
during processing (such as with filter actions that add, remove, or modify message headings). See
for more information.
Edit Header Text Action
The
edit-header-text
action allows you to rewrite specified header text using the regular expression
substitution function. The filter matches the regular expression within the header and replaces it with a
regular expression you specify.
regular expression you specify.
For example, an email contains the following subject header:
Subject: SCAN Marketing Messages
The following filter removes the “SCAN” text, and leaves the text, “Marketing Messages”, in the header:
After the filter processes the message, it returns the following header:
Subject: Marketing Messages
Edit Body Text Action
The
edit-body-text()
message filter is similar to the
Edit-Header-Text()
filter, but it operates across
the body of the message instead of one of the headers.
The
edit-body-text()
message filter uses the following syntax where the first parameter is the regular
expression to search for and the second parameter is the replacement text:
insert-header('X-Company', 'My Company Name');
}
Remove_SCAN: if true
{
edit-header-text (‘Subject’, ‘^SCAN\\s*’,’’);
}
Example: if true {
edit-body-text("parameter 1",