xref: /titanic_51/usr/src/cmd/sendmail/cf/mailer/procmail.m4 (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gatePUSHDIVERT(-1)
2*7c478bd9Sstevel@tonic-gate#
3*7c478bd9Sstevel@tonic-gate# Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
4*7c478bd9Sstevel@tonic-gate#	All rights reserved.
5*7c478bd9Sstevel@tonic-gate# Copyright (c) 1983 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-gateifdef(`PROCMAIL_MAILER_PATH',,
17*7c478bd9Sstevel@tonic-gate	`ifdef(`PROCMAIL_PATH',
18*7c478bd9Sstevel@tonic-gate		`define(`PROCMAIL_MAILER_PATH', PROCMAIL_PATH)',
19*7c478bd9Sstevel@tonic-gate		`define(`PROCMAIL_MAILER_PATH', /usr/local/bin/procmail)')')
20*7c478bd9Sstevel@tonic-gate_DEFIFNOT(`PROCMAIL_MAILER_FLAGS', `SPhnu9')
21*7c478bd9Sstevel@tonic-gateifdef(`PROCMAIL_MAILER_ARGS',,
22*7c478bd9Sstevel@tonic-gate	`define(`PROCMAIL_MAILER_ARGS', `procmail -Y -m $h $f $u')')
23*7c478bd9Sstevel@tonic-gatedefine(`_PROCMAIL_QGRP', `ifelse(defn(`PROCMAIL_MAILER_QGRP'),`',`', ` Q=PROCMAIL_MAILER_QGRP,')')dnl
24*7c478bd9Sstevel@tonic-gate
25*7c478bd9Sstevel@tonic-gatePOPDIVERT
26*7c478bd9Sstevel@tonic-gate
27*7c478bd9Sstevel@tonic-gate######################*****##############
28*7c478bd9Sstevel@tonic-gate###   PROCMAIL Mailer specification   ###
29*7c478bd9Sstevel@tonic-gate##################*****##################
30*7c478bd9Sstevel@tonic-gate
31*7c478bd9Sstevel@tonic-gateVERSIONID(`$Id: procmail.m4,v 8.22 2001/11/12 23:11:34 ca Exp $')
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gateMprocmail,	P=PROCMAIL_MAILER_PATH, F=_MODMF_(CONCAT(`DFM', PROCMAIL_MAILER_FLAGS), `PROCMAIL'), S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
34*7c478bd9Sstevel@tonic-gate		ifdef(`PROCMAIL_MAILER_MAX', `M=PROCMAIL_MAILER_MAX, ')T=DNS/RFC822/X-Unix,_PROCMAIL_QGRP
35*7c478bd9Sstevel@tonic-gate		A=PROCMAIL_MAILER_ARGS
36