summaryrefslogtreecommitdiff
path: root/cf/feature/prefixmod.m4
diff options
context:
space:
mode:
Diffstat (limited to 'cf/feature/prefixmod.m4')
-rw-r--r--cf/feature/prefixmod.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/cf/feature/prefixmod.m4 b/cf/feature/prefixmod.m4
new file mode 100644
index 0000000000000..abafe18da650e
--- /dev/null
+++ b/cf/feature/prefixmod.m4
@@ -0,0 +1,24 @@
+divert(-1)
+#
+# Copyright (c) 2014 Proofpoint, Inc. and its suppliers.
+# All rights reserved.
+#
+# By using this file, you agree to the terms and conditions set
+# forth in the LICENSE file which can be found at the top level of
+# the sendmail distribution.
+#
+#
+
+divert(-1)
+# Arguments:
+# 1: prefix to match; must be one or more tokens
+# (this is not a "substring" match)
+# 2: flags to set
+# NYI: 3: replacement for 1 (empty for now)
+
+ifelse(defn(`_ARG_'), `', `errprint(`Feature "prefixmod" requires argument')',
+ `define(`_PREFIX_MOD_', _ARG_)')
+ifelse(len(X`'_ARG2_),`1', `errprint(`Feature "prefixmod" requires two arguments')',
+ `define(`_PREFIX_FLAGS_', _ARG2_)')
+
+define(`_NEED_MACRO_MAP_', `1')