Predicates are used by conditions and exceptions to define what part of an e-mail message the conditions and exceptions examine to determine whether the transport rule should be applied to that message. Some predicates examine the To: or From: fields of a message, whereas other predicates examine the subject, body, or attachment size. To determine whether a transport rule should be applied to a message, most predicates require that you specify a value that the predicates use to test against the message.
Conditions
Transport rule conditions are used to indicate which e-mail message attributes, headers, recipients, senders, or other parts of the message are used to identify the e-mail messages to which a transport rule action should be applied. Most conditions accept a value that the condition should look for in the message. If the data in the section of the e-mail message that the condition is inspecting matches the value of the condition, the message matches that condition.
You can configure multiple conditions on a transport rule to narrow the scope of the transport rule so that it applies actions only to messages that have very specific criteria. Alternatively, you may decide not to apply any conditions. If you don't include any conditions on a transport rule, the transport rule is applied to all messages that the transport rule encounters. The number of conditions that you can apply to a single transport rule is unlimited. However, when you apply more conditions, the number of e-mail messages that meet each specified condition is reduced.
Important: |
|---|
If you configure multiple conditions on the same transport rule, all the conditions must be met for the transport rule to apply the configured action to a particular e-mail message.
When you specify multiple values on a single condition, if one or more of the values are matched, the condition is satisfied. For example, if an e-mail message has the subject Stock price information, and the SubjectContains condition on a transport rule is configured to match the words Contoso and stock, the condition is satisfied because the subject contains at least one of the values of the condition.
|
Although conditions are used to determine which e-mail messages to include when a transport rule applies an action, transport rules also use exceptions to determine which e-mail messages to exclude from having an action applied, even though the message matches all the conditions. For more information about exceptions, see "Exceptions" later in this topic.
To view a list of predicates that you can use to configure transport rule conditions, see Transport Rule Predicates.
Exceptions
Transport rule exceptions are based on the same predicates that are used to create transport rule conditions. However, unlike transport rule conditions, exceptions identify the e-mail messages to which a transport rule action should not be applied. Transport rule exceptions override conditions and prevent a transport rule action from being applied to an e-mail message, even if the message matches all configured transport rule conditions.
Most exceptions accept a value that the exception should look for in the message. If the data in the section of the e-mail message that the exception is inspecting matches the value of the exception, the message matches that exception.
You can configure multiple exceptions on a transport rule to expand the criteria that is used to identify e-mail messages to which a transport rule action should not be applied. Alternatively, you may decide not to apply any exceptions. If you don't include any exceptions on a transport rule, the transport rule applies the rule based on whether the message matches all the configured transport rule conditions. The number of exceptions that you can apply to a single transport rule is unlimited.
Important: |
|---|
If you configure multiple exceptions on the same transport rule, only one exception must be matched for the transport rule action to be excluded from being applied to an e-mail message.
When you specify multiple values on a single exception, if one or more of the values are matched, the exception is satisfied. For example, if an e-mail message has the subject Stock price information, and a transport rule uses the SubjectContains exception, which is configured to match the words Contoso and stock, the exception is satisfied because the subject contains at least one of the values of the exception.
|
To view a list of predicates that you can use to configure transport rule exceptions, see Transport Rule Predicates.