Field Definition Section
This
section allows similar fields to be grouped under an alias or common
name. This name, or alias, is used to represent the field list. You
can define an arbitrary number of aliases representing a set of field
lists.An alias name can be any alphanumeric sequence of characters that is not a predefined keyword within the SMTP rules (see the following form). However, the alias name DefaultFields is treated specially by the SMTP configuration interpreter. If DefaultFields is defined, and if a rule is written that does not specify an associated field alias, the rules interpreter assumes that DefaultFields is the associated field alias.
alias_name = alias_definition; optional comment
where alias_name is
the name of the alias and alias_definition is
an expression describing which fields are to be grouped under this
alias. This expression can be as simple as a single field name. For
example: MyAlias = 'To';
The aliases can be
a list or set of field names. The field names To, From, Cc,
and Bcc, in the following example are part of a set
of field names referenced by the alias MyAlias. MyAlias = 'To' 'From' 'Cc' 'Bcc' ; -- first list of fields
MyAlias = 'To' 'From' 'Cc' 'Bcc';
YourAlias = 'Errors-To' 'Warnings-To';
TheirAlias = MyAlias YourAlias;
In the previous example, TheirAlias is
an alias that represents the following fields: TheirAlias: 'To' 'From' 'Cc' 'Bcc' 'Errors-To' 'Warnings-To'
HerAlias = 'Reply-To' 'Sender';
HisAlias = TheirAlias - 'Warnings-To' - 'Bcc' + HerAlias;
In
the previous example, HisAlias is an alias that represents
the following fields: HisAlias: 'To' 'From' 'Cc' 'Errors-To' 'Reply-To' 'Sender'
MyAlias = 'Bcc' 'Cc' 'From' 'Reply-To';
YourAlias = 'Resent-From' 'Cc' 'Sender' 'To' 'Bcc';
OurAlias = MyAlias * YourAlias; -- the intersection
In
the previous example, OurAlias represents the following
fields: OurAlias: 'Bcc' 'Cc'
TheirAlias = (MyAlias + 'Resent-From') * YourAlias;
In
the previous example, TheirAlias represents the following
fields: TheirAlias: 'Bcc' 'Cc' 'Resent-From'
The
parentheses within the definition of TheirAlias perform
the same functions as in algebra. Field expressions are evaluated
from left to right, but the intersection operation has greater priority
than union and difference operations. If parentheses were not used
in the definition of TheirAlias, the result would
be: TheirAlias: 'Bcc' 'Cc' 'From' 'Reply-To' 'Resent-From'