Check more than one message header at time
With the built-in option to check all or any conditions you can check more than one header at a time. Multiple headers can be checked with logical AND or OR parameters.
I’ll add two headers with value checking. In the first one I will use Wildcards when matching Content-Type value. In the second one I will use Regular expression to match User-Agent header value.
Now when both conditions are added, one of two options must be selected:
- All conditions must met
- Any condition must met
When the All conditions must be met option is selected then both header conditions must be met. So when a message does not have those headers, the rule will not be executed.
When the Any condition must be met option is selected then any header may be present in the message.
To learn more visit MSH Traffic Policy website.