LHS operators
Operator ?§ Description or use
$* ?§18.9.21 on page 681 Match zero or more tokens.
$+ ?§18.9.17 on page 679 Match one or more tokens.
$- ?§18.9.16 on page 679 Match exactly one token.
$@ ?§18.9.2 on page 673 Match exactly zero tokens (V8 only).
$= ?§22.2.1 on page 863 Match any tokens in a class.a
a Class matches either a single token or multiple tokens, depending on the version of sendmail (?§22.2).
$~ ?§22.2.2 on page 864 Match any single token not in a class.
$# ?§18.9.18 on page 680 Match a literal $#.
$| ?§18.9.23 on page 682 Match a literal $|.
$& ?§21.5.3 on page 793 Delay macro expansion until runtime.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
660 | Chapter 18: The R (Rules) Configuration Command
If you merely omit the LHS in a mistaken attempt to match an empty LHS, you will
see the following error when sendmail starts up:
configfile: line number: R line: null LHS
Note that all comparisons of tokens in the LHS to tokens in the workspace are done
in a case-insensitive manner. That is, tom in the LHS matches TOM, Tom, and even ToM
in the workspace.
18.6.1 Minimum Matching
When a pattern-matching operator can match multiple tokens ($+ and $+) sendmail
performs minimum matching. For example, consider a workspace of xxx.yyy.
Pages:
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161