mail11.m4 revision 64562
1PUSHDIVERT(-1)
2#
3# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
4#	All rights reserved.
5#
6# By using this file, you agree to the terms and conditions set
7# forth in the LICENSE file which can be found at the top level of
8# the sendmail distribution.
9#
10#
11# Not exciting enough to bother with copyrights and most of the
12# rulesets are based from those provided by DEC.
13# Barb Dijker, Labyrinth Computer Services, barb@labyrinth.com
14#
15# This mailer is only useful if you have DECNET and the
16# mail11 program - gatekeeper.dec.com:/pub/DEC/gwtools.
17#
18# For local delivery of DECNET style addresses to the local
19# DECNET node, you will need feature(use_cw_file) and put
20# your DECNET nodename in in the cw file.
21#
22ifdef(`MAIL11_MAILER_PATH',, `define(`MAIL11_MAILER_PATH', /usr/etc/mail11)')
23_DEFIFNOT(`MAIL11_MAILER_FLAGS', `nsFx')
24ifdef(`MAIL11_MAILER_ARGS',, `define(`MAIL11_MAILER_ARGS', mail11 $g $x $h $u)')
25define(`_USE_DECNET_SYNTAX_')
26define(`_LOCAL_', ifdef(`confLOCAL_MAILER', confLOCAL_MAILER, `local'))
27
28POPDIVERT
29
30PUSHDIVERT(3)
31# DECNET delivery
32R$* < @ $=w .DECNET. >		$#_LOCAL_ $: $1			local DECnet
33R$+ < @ $+ .DECNET. >		$#mail11 $@ $2 $: $1		DECnet user
34POPDIVERT
35
36PUSHDIVERT(6)
37CPDECNET
38POPDIVERT
39
40###########################################
41###   UTK-MAIL11 Mailer specification   ###
42###########################################
43
44VERSIONID(`$Id: mail11.m4,v 8.19 1999/10/18 04:57:54 gshapiro Exp $')
45
46SMail11From=15
47R$+			$: $>25 $1		preprocess
48R$w :: $+		$@ $w :: $1		ready to go
49
50SMail11To=25
51R$+ < @ $- .UUCP >	$: $2 ! $1		back to old style
52R$+ < @ $- .DECNET >	$: $2 :: $1		convert to DECnet style
53R$+ < @ $- .LOCAL >	$: $2 :: $1		convert to DECnet style
54R$+ < @ $=w. >		$: $2 :: $1		convert to DECnet style
55R$=w :: $+		$2			strip local names
56R$+ :: $+		$@ $1 :: $2		already qualified
57
58Mmail11, P=MAIL11_MAILER_PATH, F=_MODMF_(MAIL11_MAILER_FLAGS, `MAIL11'), S=Mail11From, R=Mail11To,
59	T=DNS/X-DECnet/X-Unix,
60	A=MAIL11_MAILER_ARGS
61