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