3 # Copyright (c) 2003, 2004 Sendmail, Inc. and its suppliers.
6 # By using this file, you agree to the terms and conditions set
7 # forth in the LICENSE file which can be found at the top level of
8 # the sendmail distribution.
13 VERSIONID(`$Id: ratecontrol.m4,v 1.5 2004/02/19 21:31:47 ca Exp $')
16 ifdef(`_ACCESS_TABLE_', `
17 define(`_RATE_CONTROL_', `1')
18 ifelse(defn(`_ARG_'), `', `',
19 strcasecmp(defn(`_ARG_'), `nodelay'), `1',
20 `ifdef(`_DELAY_CHECKS_',
22 define(`_RATE_CONTROL_IMMEDIATE_', `1')
23 define(`_CONTROL_IMMEDIATE_', `1')
25 `errprint(`*** ERROR: FEATURE(`ratecontrol', `nodelay') requires FEATURE(`delay_checks')')'
27 `errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`ratecontrol')')')
28 define(`_FFR_SRCHLIST_A', `1')
29 ifelse(len(X`'_ARG2_), `1', `',
30 _ARG2_, `terminate', `define(`_RATE_CONTROL_REPLY', `421')',
31 `errprint(`*** ERROR: FEATURE(`ratecontrol'): unknown argument '"_ARG2_"
34 ', `errprint(`*** ERROR: FEATURE(`ratecontrol') requires FEATURE(`access_db')
36 ifdef(`_RATE_CONTROL_REPLY',,`define(`_RATE_CONTROL_REPLY', `452')')