From 490bdc0f0d68e875953b01d99a7172f4dabb5739 Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Sun, 9 Aug 1981 23:53:58 -0800 Subject: [PATCH] documentation SCCS-vsn: usr.sbin/sendmail/src/macro.c 3.1 --- usr/src/usr.sbin/sendmail/src/macro.c | 33 ++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/usr/src/usr.sbin/sendmail/src/macro.c b/usr/src/usr.sbin/sendmail/src/macro.c index cece717467..4ca38697d0 100644 --- a/usr/src/usr.sbin/sendmail/src/macro.c +++ b/usr/src/usr.sbin/sendmail/src/macro.c @@ -1,6 +1,6 @@ # include "useful.h" -static char SccsId[] = "@(#)macro.c 1.4 %G%"; +static char SccsId[] = "@(#)macro.c 3.1 %G%"; char *Macro[128]; extern int Debug; @@ -103,6 +103,37 @@ expand(s, buf, buflim) ** ** Side Effects: ** Macro[n] is defined. +** +** Notes: +** There is one macro for each ASCII character, +** although they are not all used. The currently +** defined macros are: +** +** $a date in arpa format +** $c hop count +** $d date in ctime format +** $f raw from address +** $g translated from address +** $h to host +** $l UNIX-style from line+ +** $n name of sendmail ("MAILER-DAEMON" on local +** net typically)+ +** $o delimiters ("operators") for address tokens+ +** $p my process id in decimal +** $t the current time in seconds since 1/1/1970 +** $u to user +** $v version number of sendmail +** $x signature (full name) of from person +** $z home directory of to person +** +** Macros marked with + must be defined in the +** configuration file and are used internally, but +** are not set. +** +** There are also some macros that can be used +** arbitrarily to make the configuration file +** cleaner. In general all upper-case letters +** are available. */ define(n, v) -- 2.20.1