Skip to Main Content
sendmail 8.13 Companion
book

sendmail 8.13 Companion

by Bryan Costales, George Jansen, Claus Assmann, Gregory Neil Shapiro
September 2004
Intermediate to advanced content levelIntermediate to advanced
192 pages
10h 12m
English
O'Reilly Media, Inc.
Content preview from sendmail 8.13 Companion

Useful Tables

There are three useful tables in this chapter:

Table of LHS Operators

The LHS (lefthand side) of any rule is compared to the current contents of the workspace to determine whether the two match. Table 18-2 displays a variety of special operators offered by sendmail that make comparisons easier and more versatile.

Table 18-2. LHS operators

Operator

sendmail text reference

Description or use

$*

18.9.21[3ed]

Match zero or more tokens

$+

18.9.17[3ed]

Match one or more tokens

$-

18.9.16[3ed]

Match exactly one token

$@

18.9.2[3ed]

Match exactly zero tokens (V8 only)

$=

22.2.1[3ed]

Match any tokens in a class[a]

$~

22.2.2[3ed]

Match any single token not in a class

$#

18.9.18[3ed]

Match a literal $#

$|

18.9.23[3ed]

Match a literal $|

$&

21.5.3[3ed]

Delay macro expansion until runtime

[a] Class matches either a single token or multiple tokens, depending on the version of sendmail (§22.2[3ed]).

Table of RHS Operators

The RHS (right-hand side) of a rule rewrites the workspace. To make this rewriting more versatile, sendmail offers several special RHS operators. The complete list is shown in Table 18-3.

Table 18-3. RHS operators

RHS

sendmail text reference ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Slamming Spam: A Guide for System Administrators

Slamming Spam: A Guide for System Administrators

Dale Nielsen, Robert Haskins
Mac OS X Tiger in a Nutshell

Mac OS X Tiger in a Nutshell

Andy Lester, Chris Stone, Chuck Toporek, Jason McIntosh

Publisher Resources

ISBN: 0596008457Catalog PageErrata