Cisco Cisco Email Security Appliance C190 Guía Del Usuario
9-63
Cisco AsyncOS 8.5.5 for Email Security User Guide
Chapter 9 Using Message Filters to Enforce Email Policies
Message Filter Actions
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:
The
edit-body-text()
message filter only works on the message body parts. For more information
about whether a given MIME part is considered a message “body” or a message “attachment”, see
.
Remove_SCAN: if true
{
edit-header-text (‘Subject’, ‘^SCAN\\s*’,’’);
}
Example: if true {
edit-body-text("parameter 1",
"parameter 2");
}