The whole suite of special operators available to your shell can be used to generate
an appropriate text value. For example, the following assigns the name of your
Usenet news server to the macro N:
-MN$NNTPSERVER
The $NNTPSERVER (if defined) holds the shell??™s environment variable that contains the
address of the news server as its value.
21.3 Configuration-File Definitions
When sendmail reads the configuration file, macros that are declared in that file are
assigned values. The configuration-file command that declares macros begins with
the letter D. There can be only one macro command per line. The form of the D
macro configuration command is:
DXtext
The symbolic name of the macro (here, X) is a single-character or a multicharacter
name (?§21.4 on page 790):
DXtext ?†? single-character name X
D{XXX}text ?†? multicharacter name XXX
The symbolic name must immediately follow the D withno intervening space. The
value that is given to the macro is the text, consisting of all characters beginning
with the first character following the name and including all characters up to the end
of the line. Any indented lines that follow the definition are joined to that definition.
When joined, the newline and indentation characters are retained. Consider the following
three configuration lines:
DXsometext
moretext
moretext
?†‘
tabs
These are read and joined by sendmail to form the following text value for the macro
named X:
sometext\n\tmoretext\n\tmoretext
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc.
Pages:
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385