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