Import sendmail 8.13.4 into a new contrib directory as the first step
[dragonfly.git] / contrib / sendmail-8.13.4 / cf / feature / local_procmail.m4
1 divert(-1)
2 #
3 # Copyright (c) 1998, 1999, 2002 Sendmail, Inc. and its suppliers.
4 #       All rights reserved.
5 # Copyright (c) 1994 Eric P. Allman.  All rights reserved.
6 # Copyright (c) 1988, 1993
7 #       The Regents of the University of California.  All rights reserved.
8 #
9 # By using this file, you agree to the terms and conditions set
10 # forth in the LICENSE file which can be found at the top level of
11 # the sendmail distribution.
12 #
13 #
14
15 divert(0)
16 VERSIONID(`$Id: local_procmail.m4,v 8.22 2002/11/17 04:24:19 ca Exp $')
17 divert(-1)
18
19 ifdef(`_MAILER_local_',
20         `errprint(`*** FEATURE(local_procmail) must occur before MAILER(local)
21 ')')dnl
22
23 define(`LOCAL_MAILER_PATH',
24         ifelse(defn(`_ARG_'), `',
25                 ifdef(`PROCMAIL_MAILER_PATH',
26                         PROCMAIL_MAILER_PATH,
27                         `/usr/local/bin/procmail'),
28                 _ARG_))
29 define(`LOCAL_MAILER_ARGS',
30         ifelse(len(X`'_ARG2_), `1', `procmail -Y -a $h -d $u', _ARG2_))
31 define(`LOCAL_MAILER_FLAGS',
32         ifelse(len(X`'_ARG3_), `1', `SPfhn9', _ARG3_))
33 dnl local_procmail conflicts with local_lmtp but the latter might be
34 dnl defined in an OS/ file (solaris8). Let's just undefine it.
35 undefine(`_LOCAL_LMTP_')
36 undefine(`LOCAL_MAILER_DSN_DIAGNOSTIC_CODE')