procmail.m4 revision 64562
1PUSHDIVERT(-1)
2#
3# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
4#	All rights reserved.
5# Copyright (c) 1983 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
15ifdef(`_MAILER_smtp_', `',
16	`errprint(`*** MAILER(`smtp') must appear before MAILER(`procmail')')')dnl
17
18ifdef(`PROCMAIL_MAILER_PATH',,
19	`ifdef(`PROCMAIL_PATH',
20		`define(`PROCMAIL_MAILER_PATH', PROCMAIL_PATH)',
21		`define(`PROCMAIL_MAILER_PATH', /usr/local/bin/procmail)')')
22_DEFIFNOT(`PROCMAIL_MAILER_FLAGS', `SPhnu9')
23ifdef(`PROCMAIL_MAILER_ARGS',,
24	`define(`PROCMAIL_MAILER_ARGS', `procmail -Y -m $h $f $u')')
25
26POPDIVERT
27
28######################*****##############
29###   PROCMAIL Mailer specification   ###
30##################*****##################
31
32VERSIONID(`$Id: procmail.m4,v 8.20 1999/10/18 04:57:54 gshapiro Exp $')
33
34Mprocmail,	P=PROCMAIL_MAILER_PATH, F=_MODMF_(CONCAT(`DFM', PROCMAIL_MAILER_FLAGS), `PROCMAIL'), S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
35		ifdef(`PROCMAIL_MAILER_MAX', `M=PROCMAIL_MAILER_MAX, ')T=DNS/RFC822/X-Unix,
36		A=PROCMAIL_MAILER_ARGS
37