xref: /freebsd/contrib/sendmail/cf/feature/ratecontrol.m4 (revision ee7b0571c2c18bdec848ed2044223cc88db29bd8)
1e92d3f3fSGregory Neil Shapirodivert(-1)
2e92d3f3fSGregory Neil Shapiro#
35dd76dd0SGregory Neil Shapiro# Copyright (c) 2003, 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: ratecontrol.m4,v 1.6 2013-11-22 20:51:11 ca Exp $')
14e92d3f3fSGregory Neil Shapiro
15e92d3f3fSGregory Neil Shapirodivert(-1)
16e92d3f3fSGregory Neil Shapiroifdef(`_ACCESS_TABLE_', `
17e92d3f3fSGregory Neil Shapiro	define(`_RATE_CONTROL_', `1')
18e92d3f3fSGregory Neil Shapiro	ifelse(defn(`_ARG_'), `', `',
19e92d3f3fSGregory Neil Shapiro		strcasecmp(defn(`_ARG_'), `nodelay'), `1',
20e92d3f3fSGregory Neil Shapiro		`ifdef(`_DELAY_CHECKS_',
21e92d3f3fSGregory Neil Shapiro			`
22e92d3f3fSGregory Neil Shapiro			define(`_RATE_CONTROL_IMMEDIATE_', `1')
23e92d3f3fSGregory Neil Shapiro			define(`_CONTROL_IMMEDIATE_', `1')
24e92d3f3fSGregory Neil Shapiro			',
25e92d3f3fSGregory Neil Shapiro			`errprint(`*** ERROR: FEATURE(`ratecontrol', `nodelay') requires FEATURE(`delay_checks')')'
26e92d3f3fSGregory Neil Shapiro		)',
27e92d3f3fSGregory Neil Shapiro		`errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`ratecontrol')')')
28e92d3f3fSGregory Neil Shapiro	define(`_FFR_SRCHLIST_A', `1')
29e92d3f3fSGregory Neil Shapiro	ifelse(len(X`'_ARG2_), `1', `',
30e92d3f3fSGregory Neil Shapiro		_ARG2_, `terminate', `define(`_RATE_CONTROL_REPLY', `421')',
31e92d3f3fSGregory Neil Shapiro		`errprint(`*** ERROR: FEATURE(`ratecontrol'): unknown argument '"_ARG2_"
32e92d3f3fSGregory Neil Shapiro)'
33e92d3f3fSGregory Neil Shapiro		)
34e92d3f3fSGregory Neil Shapiro	', `errprint(`*** ERROR: FEATURE(`ratecontrol') requires FEATURE(`access_db')
35e92d3f3fSGregory Neil Shapiro')')
36e92d3f3fSGregory Neil Shapiroifdef(`_RATE_CONTROL_REPLY',,`define(`_RATE_CONTROL_REPLY', `452')')
37