xref: /freebsd/contrib/sendmail/cf/feature/prefixmod.m4 (revision 193d9e768ba63fcfb187cfd17f461f7d41345048)
1divert(-1)
2#
3# Copyright (c) 2014 Proofpoint, Inc. and its suppliers.
4#	All rights reserved.
5#
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.
9#
10#
11
12divert(-1)
13# Arguments:
14# 1: prefix to match; must be one or more tokens
15#    (this is not a "substring" match)
16# 2: flags to set
17# NYI: 3: replacement for 1 (empty for now)
18
19ifelse(defn(`_ARG_'), `', `errprint(`Feature "prefixmod" requires argument')',
20	`define(`_PREFIX_MOD_', _ARG_)')
21ifelse(len(X`'_ARG2_),`1', `errprint(`Feature "prefixmod" requires two arguments')',
22	`define(`_PREFIX_FLAGS_', _ARG2_)')
23
24define(`_NEED_MACRO_MAP_', `1')
25