xref: /freebsd/contrib/sendmail/cf/mailer/procmail.m4 (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1PUSHDIVERT(-1)
2#
3# Copyright (c) 1998-2001 Proofpoint, 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(`PROCMAIL_MAILER_PATH',,
16	`ifdef(`PROCMAIL_PATH',
17		`define(`PROCMAIL_MAILER_PATH', PROCMAIL_PATH)',
18		`define(`PROCMAIL_MAILER_PATH', /usr/local/bin/procmail)')')
19_DEFIFNOT(`PROCMAIL_MAILER_FLAGS', `SPhnu9')
20ifdef(`PROCMAIL_MAILER_ARGS',,
21	`define(`PROCMAIL_MAILER_ARGS', `procmail -Y -m $h $f $u')')
22define(`_PROCMAIL_QGRP', `ifelse(defn(`PROCMAIL_MAILER_QGRP'),`',`', ` Q=PROCMAIL_MAILER_QGRP,')')dnl
23
24POPDIVERT
25
26######################*****##############
27###   PROCMAIL Mailer specification   ###
28##################*****##################
29
30VERSIONID(`$Id: procmail.m4,v 8.23 2013-11-22 20:51:14 ca Exp $')
31
32Mprocmail,	P=PROCMAIL_MAILER_PATH, F=_MODMF_(CONCAT(`DFM', PROCMAIL_MAILER_FLAGS), `PROCMAIL'), S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
33		ifdef(`PROCMAIL_MAILER_MAX', `M=PROCMAIL_MAILER_MAX, ')T=DNS/RFC822/X-Unix,_PROCMAIL_QGRP
34		A=PROCMAIL_MAILER_ARGS
35