xref: /titanic_44/usr/src/cmd/sendmail/cf/feature/local_procmail.m4 (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gatedivert(-1)
2*7c478bd9Sstevel@tonic-gate#
3*7c478bd9Sstevel@tonic-gate# Copyright (c) 1998, 1999, 2002 Sendmail, Inc. and its suppliers.
4*7c478bd9Sstevel@tonic-gate#	All rights reserved.
5*7c478bd9Sstevel@tonic-gate# Copyright (c) 1994 Eric P. Allman.  All rights reserved.
6*7c478bd9Sstevel@tonic-gate# Copyright (c) 1988, 1993
7*7c478bd9Sstevel@tonic-gate#	The Regents of the University of California.  All rights reserved.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set
10*7c478bd9Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of
11*7c478bd9Sstevel@tonic-gate# the sendmail distribution.
12*7c478bd9Sstevel@tonic-gate#
13*7c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
14*7c478bd9Sstevel@tonic-gate#
15*7c478bd9Sstevel@tonic-gate
16*7c478bd9Sstevel@tonic-gatedivert(0)
17*7c478bd9Sstevel@tonic-gateVERSIONID(`$Id: local_procmail.m4,v 8.21.42.1 2002/11/17 04:25:07 ca Exp $')
18*7c478bd9Sstevel@tonic-gatedivert(-1)
19*7c478bd9Sstevel@tonic-gate
20*7c478bd9Sstevel@tonic-gateifdef(`_MAILER_local_',
21*7c478bd9Sstevel@tonic-gate	`errprint(`*** FEATURE(local_procmail) must occur before MAILER(local)
22*7c478bd9Sstevel@tonic-gate')')dnl
23*7c478bd9Sstevel@tonic-gate
24*7c478bd9Sstevel@tonic-gatedefine(`LOCAL_MAILER_PATH',
25*7c478bd9Sstevel@tonic-gate	ifelse(defn(`_ARG_'), `',
26*7c478bd9Sstevel@tonic-gate		ifdef(`PROCMAIL_MAILER_PATH',
27*7c478bd9Sstevel@tonic-gate			PROCMAIL_MAILER_PATH,
28*7c478bd9Sstevel@tonic-gate			`/usr/local/bin/procmail'),
29*7c478bd9Sstevel@tonic-gate		_ARG_))
30*7c478bd9Sstevel@tonic-gatedefine(`LOCAL_MAILER_ARGS',
31*7c478bd9Sstevel@tonic-gate	ifelse(len(X`'_ARG2_), `1', `procmail -Y -a $h -d $u', _ARG2_))
32*7c478bd9Sstevel@tonic-gatedefine(`LOCAL_MAILER_FLAGS',
33*7c478bd9Sstevel@tonic-gate	ifelse(len(X`'_ARG3_), `1', `SPfhn9', _ARG3_))
34*7c478bd9Sstevel@tonic-gatednl local_procmail conflicts with local_lmtp but the latter might be
35*7c478bd9Sstevel@tonic-gatednl defined in an OS/ file (solaris8). Let's just undefine it.
36*7c478bd9Sstevel@tonic-gateundefine(`_LOCAL_LMTP_')
37*7c478bd9Sstevel@tonic-gateundefine(`LOCAL_MAILER_DSN_DIAGNOSTIC_CODE')
38