1e92d3f3fSGregory Neil Shapirodivert(-1) 2e92d3f3fSGregory Neil Shapiro# 35dd76dd0SGregory Neil Shapiro# Copyright (c) 2004 Proofpoint, Inc. and its suppliers. 4e92d3f3fSGregory Neil Shapiro# All rights reserved. 5e92d3f3fSGregory Neil Shapiro# 6e92d3f3fSGregory Neil Shapiro# By using this file, you agree to the terms and conditions set 7e92d3f3fSGregory Neil Shapiro# forth in the LICENSE file which can be found at the top level of 8e92d3f3fSGregory Neil Shapiro# the sendmail distribution. 9e92d3f3fSGregory Neil Shapiro# 10e92d3f3fSGregory Neil Shapiro# 11e92d3f3fSGregory Neil Shapiro 12e92d3f3fSGregory Neil Shapirodivert(0) 13*4313cc83SGregory Neil ShapiroVERSIONID(`$Id: greet_pause.m4,v 1.5 2013-11-22 20:51:11 ca Exp $') 14e92d3f3fSGregory Neil Shapirodivert(-1) 15e92d3f3fSGregory Neil Shapiro 16e92d3f3fSGregory Neil Shapiroifelse(len(X`'_ARG_),`1',`ifdef(`_ACCESS_TABLE_', `', 17e92d3f3fSGregory Neil Shapiro `errprint(`*** ERROR: FEATURE(`greet_pause') requires FEATURE(`access_db') 18e92d3f3fSGregory Neil Shapiro')')') 19e92d3f3fSGregory Neil Shapiro 20e92d3f3fSGregory Neil Shapirodefine(`_GREET_PAUSE_', `') 21e92d3f3fSGregory Neil Shapiro 22e92d3f3fSGregory Neil ShapiroLOCAL_RULESETS 23e92d3f3fSGregory Neil Shapiro###################################################################### 24e92d3f3fSGregory Neil Shapiro### greet_pause: lookup pause time before 220 greeting 25e92d3f3fSGregory Neil Shapiro### 26e92d3f3fSGregory Neil Shapiro### Parameters: 27e92d3f3fSGregory Neil Shapiro### $1: {client_name} 28e92d3f3fSGregory Neil Shapiro### $2: {client_addr} 29e92d3f3fSGregory Neil Shapiro###################################################################### 30e92d3f3fSGregory Neil ShapiroSLocal_greet_pause 31e92d3f3fSGregory Neil ShapiroSgreet_pause 32e92d3f3fSGregory Neil ShapiroR$* $: <$1><?> $| $>"Local_greet_pause" $1 33e92d3f3fSGregory Neil ShapiroR<$*><?> $| $#$* $#$2 34e92d3f3fSGregory Neil ShapiroR<$*><?> $| $* $: $1 35e92d3f3fSGregory Neil Shapiroifdef(`_ACCESS_TABLE_', `dnl 36e92d3f3fSGregory Neil ShapiroR$+ $| $+ $: $>D < $1 > <?> <! GreetPause> < $2 > 37e92d3f3fSGregory Neil ShapiroR $| $+ $: $>A < $1 > <?> <! GreetPause> <> empty client_name 38e92d3f3fSGregory Neil ShapiroR<?> <$+> $: $>A < $1 > <?> <! GreetPause> <> no: another lookup 39e92d3f3fSGregory Neil Shapiroifelse(len(X`'_ARG_),`1', 40e92d3f3fSGregory Neil Shapiro`R<?> <$*> $@', 41e92d3f3fSGregory Neil Shapiro`R<?> <$*> $# _ARG_') 42e92d3f3fSGregory Neil ShapiroR<$* <TMPF>> <$*> $@ 43e92d3f3fSGregory Neil ShapiroR<$+> <$*> $# $1',`dnl 44e92d3f3fSGregory Neil ShapiroR$* $# _ARG_') 45