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.
13 #ident "%Z%%M% %I% %E% SMI"
17 VERSIONID(`$Id: local_procmail.m4,v 8.21.42.1 2002/11/17 04:25:07 ca Exp $')
20 ifdef(`_MAILER_local_',
21 `errprint(`*** FEATURE(local_procmail) must occur before MAILER(local)
24 define(`LOCAL_MAILER_PATH',
25 ifelse(defn(`_ARG_'), `',
26 ifdef(`PROCMAIL_MAILER_PATH',
28 `/usr/local/bin/procmail'),
30 define(`LOCAL_MAILER_ARGS',
31 ifelse(len(X`'_ARG2_), `1', `procmail -Y -a $h -d $u', _ARG2_))
32 define(`LOCAL_MAILER_FLAGS',
33 ifelse(len(X`'_ARG3_), `1', `SPfhn9', _ARG3_))
34 dnl local_procmail conflicts with local_lmtp but the latter might be
35 dnl defined in an OS/ file (solaris8). Let's just undefine it.
36 undefine(`_LOCAL_LMTP_')
37 undefine(`LOCAL_MAILER_DSN_DIAGNOSTIC_CODE')