3 # Copyright (c) 1998, 1999, 2002 Sendmail, Inc. and its suppliers.
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.
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.
16 VERSIONID(`$Id: local_procmail.m4,v 8.22 2002/11/17 04:24:19 ca Exp $')
19 ifdef(`_MAILER_local_',
20 `errprint(`*** FEATURE(local_procmail) must occur before MAILER(local)
23 define(`LOCAL_MAILER_PATH',
24 ifelse(defn(`_ARG_'), `',
25 ifdef(`PROCMAIL_MAILER_PATH',
27 `/usr/local/bin/procmail'),
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')