greet_pause.m4 revision 261363
138032Speterdivert(-1) 238032Speter# 3261363Sgshapiro# Copyright (c) 2004 Proofpoint, Inc. and its suppliers. 464562Sgshapiro# All rights reserved. 538032Speter# 638032Speter# By using this file, you agree to the terms and conditions set 738032Speter# forth in the LICENSE file which can be found at the top level of 838032Speter# the sendmail distribution. 938032Speter# 1038032Speter# 1138032Speter 1238032Speterdivert(0) 1338032SpeterVERSIONID(`$Id: greet_pause.m4,v 1.5 2013/11/22 20:51:11 ca Exp $') 1438032Speterdivert(-1) 1538032Speter 16266692Sgshapiroifelse(len(X`'_ARG_),`1',`ifdef(`_ACCESS_TABLE_', `', 1738032Speter `errprint(`*** ERROR: FEATURE(`greet_pause') requires FEATURE(`access_db') 1838032Speter')')') 1964562Sgshapiro 2064562Sgshapirodefine(`_GREET_PAUSE_', `') 2164562Sgshapiro 2264562SgshapiroLOCAL_RULESETS 2390792Sgshapiro###################################################################### 24132943Sgshapiro### greet_pause: lookup pause time before 220 greeting 2564562Sgshapiro### 26### Parameters: 27### $1: {client_name} 28### $2: {client_addr} 29###################################################################### 30SLocal_greet_pause 31Sgreet_pause 32R$* $: <$1><?> $| $>"Local_greet_pause" $1 33R<$*><?> $| $#$* $#$2 34R<$*><?> $| $* $: $1 35ifdef(`_ACCESS_TABLE_', `dnl 36R$+ $| $+ $: $>D < $1 > <?> <! GreetPause> < $2 > 37R $| $+ $: $>A < $1 > <?> <! GreetPause> <> empty client_name 38R<?> <$+> $: $>A < $1 > <?> <! GreetPause> <> no: another lookup 39ifelse(len(X`'_ARG_),`1', 40`R<?> <$*> $@', 41`R<?> <$*> $# _ARG_') 42R<$* <TMPF>> <$*> $@ 43R<$+> <$*> $# $1',`dnl 44R$* $# _ARG_') 45