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.

HTML Convert Action<br />

6-62<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 following example shows a URL removed from a message and replaced with the text, ‘URL<br />

REMOVED’:<br />

URL_Replaced: if true {<br />

edit-body-text("(?i)(?:https?|ftp)://[^\\s\">]+", "URL REMOVED");<br />

}<br />

The following example shows a social security number removed from the body of a message and<br />

replaced with the text, “XXX-XX-XXXX’:<br />

ssn: if true {<br />

edit-body-text("(?!000)(?:[0-6]\\d{2}|7(?:[0-6]\\d|7[012]))([<br />

-]?)(?!00)\\d\\d\\1(?!0000)\\d{4}",<br />

"XXX-XX-XXXX");<br />

}<br />

Note You cannot use smart identifiers with the edit-body-text() filter at this time.<br />

While RFC 2822 defines a text format for email messages, there are extensions (such as MIME) to<br />

provide the transport of other content within an RFC 2822 message. AsyncOS can now use the<br />

html-convert() message filter to convert HTML to plain text using the following syntax:<br />

Convert_HTML_Filter:<br />

if (true)<br />

{<br />

html-convert();<br />

}<br />

The Cisco <strong>IronPort</strong> message filters make a determination on whether a given MIME part is considered a<br />

message “body” or a message “attachment”. The html-convert() filter only works on the message body<br />

parts. For more information about message bodies and attachments, see Message Bodies vs. Message<br />

Attachments, page 6-5.<br />

Depending on the format, the html-convert() filter uses different methods to strip the HTML from<br />

within the documents.<br />

OL-25137-01

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

Saved successfully!

Ooh no, something went wrong!