27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Strip Header Action<br />

Insert Header Action<br />

6-60<br />

}<br />

archive('joesmith');<br />

Cisco <strong>IronPort</strong> AsyncOS 7.6 for Email Advanced Configuration Guide<br />

Chapter 6 Using Message Filters to Enforce Email Policies<br />

The strip-header action examines the message for a particular header and removes those lines from the<br />

message before delivering it. When there are multiple headers, all instances of the header are removed<br />

(for example, the “Received:” header.)<br />

In the following example, all messages have the header X-DeleteMe removed before transmission:<br />

stripXDeleteMeFilter:<br />

if (true)<br />

{<br />

}<br />

strip-header('X-DeleteMe');<br />

When working with headers, remember that the current value of the header includes changes made<br />

during processing (such as with filter actions that add, remove, or modify message headings). See<br />

Message Header Rules and Evaluation, page 6-4 for more information.<br />

The insert-header action inserts a new header into a message. AsyncOS does not verify the compliance<br />

to standards of the header you insert; you are responsible for ensuring that the resulting message<br />

complies with Internet standards for email.<br />

The following example inserts a header named X-Company with the value set to My Company Name if the<br />

header is not already found in the message:<br />

addXCompanyFilter:<br />

if (not header('X-Company'))<br />

{<br />

}<br />

insert-header('X-Company', 'My Company Name');<br />

The insert-header() action allows the use of non-ASCII characters in the text of the header, while<br />

restricting the header name to be ASCII (to comply with standards). The transport encoding will be<br />

quoted-printable to maximize the readability.<br />

OL-25137-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!