xref: /onnv-gate/usr/src/cmd/sendmail/cf/mailer/procmail.m4 (revision 0:68f95e015346)
1*0Sstevel@tonic-gatePUSHDIVERT(-1)
2*0Sstevel@tonic-gate#
3*0Sstevel@tonic-gate# Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
4*0Sstevel@tonic-gate#	All rights reserved.
5*0Sstevel@tonic-gate# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
6*0Sstevel@tonic-gate# Copyright (c) 1988, 1993
7*0Sstevel@tonic-gate#	The Regents of the University of California.  All rights reserved.
8*0Sstevel@tonic-gate#
9*0Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set
10*0Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of
11*0Sstevel@tonic-gate# the sendmail distribution.
12*0Sstevel@tonic-gate#
13*0Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
14*0Sstevel@tonic-gate#
15*0Sstevel@tonic-gate
16*0Sstevel@tonic-gateifdef(`PROCMAIL_MAILER_PATH',,
17*0Sstevel@tonic-gate	`ifdef(`PROCMAIL_PATH',
18*0Sstevel@tonic-gate		`define(`PROCMAIL_MAILER_PATH', PROCMAIL_PATH)',
19*0Sstevel@tonic-gate		`define(`PROCMAIL_MAILER_PATH', /usr/local/bin/procmail)')')
20*0Sstevel@tonic-gate_DEFIFNOT(`PROCMAIL_MAILER_FLAGS', `SPhnu9')
21*0Sstevel@tonic-gateifdef(`PROCMAIL_MAILER_ARGS',,
22*0Sstevel@tonic-gate	`define(`PROCMAIL_MAILER_ARGS', `procmail -Y -m $h $f $u')')
23*0Sstevel@tonic-gatedefine(`_PROCMAIL_QGRP', `ifelse(defn(`PROCMAIL_MAILER_QGRP'),`',`', ` Q=PROCMAIL_MAILER_QGRP,')')dnl
24*0Sstevel@tonic-gate
25*0Sstevel@tonic-gatePOPDIVERT
26*0Sstevel@tonic-gate
27*0Sstevel@tonic-gate######################*****##############
28*0Sstevel@tonic-gate###   PROCMAIL Mailer specification   ###
29*0Sstevel@tonic-gate##################*****##################
30*0Sstevel@tonic-gate
31*0Sstevel@tonic-gateVERSIONID(`$Id: procmail.m4,v 8.22 2001/11/12 23:11:34 ca Exp $')
32*0Sstevel@tonic-gate
33*0Sstevel@tonic-gateMprocmail,	P=PROCMAIL_MAILER_PATH, F=_MODMF_(CONCAT(`DFM', PROCMAIL_MAILER_FLAGS), `PROCMAIL'), S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
34*0Sstevel@tonic-gate		ifdef(`PROCMAIL_MAILER_MAX', `M=PROCMAIL_MAILER_MAX, ')T=DNS/RFC822/X-Unix,_PROCMAIL_QGRP
35*0Sstevel@tonic-gate		A=PROCMAIL_MAILER_ARGS
36