$digit

Copy by position RHS operator

The LHS wildcard operators ($*, $+, $-, and $@) and the LHS class-matching operators ($= and ) can have their matched values copied to the RHS by the $digit positional operator. Consider, for example, the following rule:

 R $+ < @ $- . $* > $: $1

Here, there are three wildcard operators in the LHS. The first (the $+) corresponds to the $1 on the RHS. The object of this rule is to match a focused address and rewrite it as the username. For example, will be rewritten to be gw.

The $digit operator can be used only on the RHS of rules. See Copy by Position: $digit on page 661 for a full description of this $digit operator.

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.