1132943Sgshapirodivert(-1)
2132943Sgshapiro#
3261194Sgshapiro# Copyright (c) 2003, 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)
13266527SgshapiroVERSIONID(`$Id: conncontrol.m4,v 1.5 2013-11-22 20:51:11 ca Exp $')
14132943Sgshapiro
15132943Sgshapirodivert(-1)
16132943Sgshapiroifdef(`_ACCESS_TABLE_', `
17132943Sgshapiro	define(`_CONN_CONTROL_', `1')
18132943Sgshapiro	ifelse(defn(`_ARG_'), `', `',
19132943Sgshapiro		strcasecmp(defn(`_ARG_'), `nodelay'), `1',
20132943Sgshapiro		`ifdef(`_DELAY_CHECKS_',
21132943Sgshapiro			`
22132943Sgshapiro			define(`_CONN_CONTROL_IMMEDIATE_', `1')
23132943Sgshapiro			define(`_CONTROL_IMMEDIATE_', `1')
24132943Sgshapiro			',
25132943Sgshapiro			`errprint(`*** ERROR: FEATURE(`conncontrol', `nodelay') requires FEATURE(`delay_checks')')'
26132943Sgshapiro		)',
27132943Sgshapiro		`errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`conncontrol')')')
28132943Sgshapiro	define(`_FFR_SRCHLIST_A', `1')
29132943Sgshapiro	ifelse(len(X`'_ARG2_), `1', `',
30132943Sgshapiro		_ARG2_, `terminate', `define(`_CONN_CONTROL_REPLY', `421')',
31132943Sgshapiro		`errprint(`*** ERROR: FEATURE(`conncontrol'): unknown argument '"_ARG2_"
32132943Sgshapiro)'
33132943Sgshapiro		)
34132943Sgshapiro	', `errprint(`*** ERROR: FEATURE(`conncontrol') requires FEATURE(`access_db')
35132943Sgshapiro')')
36132943Sgshapiroifdef(`_CONN_CONTROL_REPLY',,`define(`_CONN_CONTROL_REPLY', `452')')
37