1132943Sgshapirodivert(-1) 2132943Sgshapiro# 3261363Sgshapiro# Copyright (c) 2004 Proofpoint, Inc. and its suppliers. 4132943Sgshapiro# All rights reserved. 5132943Sgshapiro# 6132943Sgshapiro# By using this file, you agree to the terms and conditions set 7132943Sgshapiro# forth in the LICENSE file which can be found at the top level of 8132943Sgshapiro# the sendmail distribution. 9132943Sgshapiro# 10132943Sgshapiro# 11132943Sgshapiro 12132943Sgshapirodivert(0) 13266692SgshapiroVERSIONID(`$Id: greet_pause.m4,v 1.5 2013-11-22 20:51:11 ca Exp $') 14132943Sgshapirodivert(-1) 15132943Sgshapiro 16132943Sgshapiroifelse(len(X`'_ARG_),`1',`ifdef(`_ACCESS_TABLE_', `', 17132943Sgshapiro `errprint(`*** ERROR: FEATURE(`greet_pause') requires FEATURE(`access_db') 18132943Sgshapiro')')') 19132943Sgshapiro 20132943Sgshapirodefine(`_GREET_PAUSE_', `') 21132943Sgshapiro 22132943SgshapiroLOCAL_RULESETS 23132943Sgshapiro###################################################################### 24132943Sgshapiro### greet_pause: lookup pause time before 220 greeting 25132943Sgshapiro### 26132943Sgshapiro### Parameters: 27132943Sgshapiro### $1: {client_name} 28132943Sgshapiro### $2: {client_addr} 29132943Sgshapiro###################################################################### 30132943SgshapiroSLocal_greet_pause 31132943SgshapiroSgreet_pause 32132943SgshapiroR$* $: <$1><?> $| $>"Local_greet_pause" $1 33132943SgshapiroR<$*><?> $| $#$* $#$2 34132943SgshapiroR<$*><?> $| $* $: $1 35132943Sgshapiroifdef(`_ACCESS_TABLE_', `dnl 36132943SgshapiroR$+ $| $+ $: $>D < $1 > <?> <! GreetPause> < $2 > 37132943SgshapiroR $| $+ $: $>A < $1 > <?> <! GreetPause> <> empty client_name 38132943SgshapiroR<?> <$+> $: $>A < $1 > <?> <! GreetPause> <> no: another lookup 39132943Sgshapiroifelse(len(X`'_ARG_),`1', 40132943Sgshapiro`R<?> <$*> $@', 41132943Sgshapiro`R<?> <$*> $# _ARG_') 42132943SgshapiroR<$* <TMPF>> <$*> $@ 43132943SgshapiroR<$+> <$*> $# $1',`dnl 44132943SgshapiroR$* $# _ARG_') 45