11-21-2018 08:28 AM
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
11-21-2018 06:11 PM
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
11-21-2018 08:47 PM
What are the different header options to use with message filters ?
Command and sub command/operators..
11-22-2018 01:34 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide