xref: /titanic_51/usr/src/cmd/sendmail/cf/feature/greet_pause.m4 (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gatedivert(-1)
2*7c478bd9Sstevel@tonic-gate#
3*7c478bd9Sstevel@tonic-gate# Copyright (c) 2004 Sendmail, Inc. and its suppliers.
4*7c478bd9Sstevel@tonic-gate#	All rights reserved.
5*7c478bd9Sstevel@tonic-gate#
6*7c478bd9Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set
7*7c478bd9Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of
8*7c478bd9Sstevel@tonic-gate# the sendmail distribution.
9*7c478bd9Sstevel@tonic-gate#
10*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
11*7c478bd9Sstevel@tonic-gate#
12*7c478bd9Sstevel@tonic-gate
13*7c478bd9Sstevel@tonic-gatedivert(0)
14*7c478bd9Sstevel@tonic-gateVERSIONID(`$Id: greet_pause.m4,v 1.4 2004/07/06 20:49:51 ca Exp $')
15*7c478bd9Sstevel@tonic-gatedivert(-1)
16*7c478bd9Sstevel@tonic-gate
17*7c478bd9Sstevel@tonic-gateifelse(len(X`'_ARG_),`1',`ifdef(`_ACCESS_TABLE_', `',
18*7c478bd9Sstevel@tonic-gate	`errprint(`*** ERROR: FEATURE(`greet_pause') requires FEATURE(`access_db')
19*7c478bd9Sstevel@tonic-gate')')')
20*7c478bd9Sstevel@tonic-gate
21*7c478bd9Sstevel@tonic-gatedefine(`_GREET_PAUSE_', `')
22*7c478bd9Sstevel@tonic-gate
23*7c478bd9Sstevel@tonic-gateLOCAL_RULESETS
24*7c478bd9Sstevel@tonic-gate######################################################################
25*7c478bd9Sstevel@tonic-gate###  greet_pause: lookup pause time before 220 greeting
26*7c478bd9Sstevel@tonic-gate###
27*7c478bd9Sstevel@tonic-gate###	Parameters:
28*7c478bd9Sstevel@tonic-gate###		$1: {client_name}
29*7c478bd9Sstevel@tonic-gate###		$2: {client_addr}
30*7c478bd9Sstevel@tonic-gate######################################################################
31*7c478bd9Sstevel@tonic-gateSLocal_greet_pause
32*7c478bd9Sstevel@tonic-gateSgreet_pause
33*7c478bd9Sstevel@tonic-gateR$*			$: <$1><?> $| $>"Local_greet_pause" $1
34*7c478bd9Sstevel@tonic-gateR<$*><?> $| $#$*	$#$2
35*7c478bd9Sstevel@tonic-gateR<$*><?> $| $*		$: $1
36*7c478bd9Sstevel@tonic-gateifdef(`_ACCESS_TABLE_', `dnl
37*7c478bd9Sstevel@tonic-gateR$+ $| $+		$: $>D < $1 > <?> <! GreetPause> < $2 >
38*7c478bd9Sstevel@tonic-gateR   $| $+		$: $>A < $1 > <?> <! GreetPause> <>	empty client_name
39*7c478bd9Sstevel@tonic-gateR<?> <$+>		$: $>A < $1 > <?> <! GreetPause> <>	no: another lookup
40*7c478bd9Sstevel@tonic-gateifelse(len(X`'_ARG_),`1',
41*7c478bd9Sstevel@tonic-gate`R<?> <$*>		$@',
42*7c478bd9Sstevel@tonic-gate`R<?> <$*>		$# _ARG_')
43*7c478bd9Sstevel@tonic-gateR<$* <TMPF>> <$*>	$@
44*7c478bd9Sstevel@tonic-gateR<$+> <$*>		$# $1',`dnl
45*7c478bd9Sstevel@tonic-gateR$*			$# _ARG_')
46