cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1560
Views
0
Helpful
3
Replies

Message Filter functions headers

mxadmin
Level 1
Level 1

Dear colleagues,

 

I am trying to set filter using message filter CLI.

Could someone tell me how can filter on message header ?

For example:

I would like to trust all the messages "delivery report (or notification)" and "read report (or notification)" ?

I suppose that i have to use something like:

if (header-contains("multipart/report; report-type=delivery-status"), 1) or

(header-contains("multipart/report; report-type=disposition-notification"), 1).

Can someone help me, please ?

Thanks in advanced.

mxadmin

3 Replies 3

Libin Varghese
Cisco Employee
Cisco Employee

The header itself may vary based on the generating server, so you may want to review the headers of one such email you received and work on the filter condition based on those.

 

You can also review the format for filter conditions using content filter to ensure you get the syntax right.

 

For example, to check if X-Ironport-Header exists in the email the format would be.

 

header("X-Ironport-Header")

 

Regards,

Libin

 

What are the different header options to use with message filters ?

Command and sub command/operators..

The available options are mentioned in the online help guide under help and support.

 

Header name: Does the message contain a specific header?

 

Header value: Does the value of that header match a certain pattern?

 

Header value contains terms in the content dictionary. Does the specified header contain any of the regular expressions or terms in the content dictionary named <dictionary name> ?

 

Creating a condition from the GUI content filter is a good way to see the syntax that can be used in message filters.

 

Regards,

Libin