Sync usage with man page.
[netbsd-mini2440.git] / usr.sbin / sendmail / cf / m4 / postwriterule.m4
blob185a1b9daef38217eaeba94374e1e577a718098e
1 divert(10)
3 #  Sendmail
4 #  Copyright (c) 1983  Eric P. Allman
5 #  Berkeley, California
7 #  Copyright (c) 1983 Regents of the University of California.
8 #  All rights reserved.  The Berkeley software License Agreement
9 #  specifies the terms and conditions for redistribution.
11 #       @(#)postwriterule.m4    1.8 (Berkeley) 1/3/89
13 divert(0)
14 #################################
15 #  Final Output Post-rewriting  #
16 #################################
19 R@                      $@                              handle <> error addr
21 # resolve numeric addresses to name if possible
22 R$*<@[$+]>$*            $:$1<@$[[$2]$]>$3               lookup numeric internet addr
24 # externalize local domain info
25 R$*<$+>$*               $1$2$3                          defocus
26 R@$+:@$+:$+             @$1,@$2:$3                      <route-addr> canonical
28 # UUCP must always be presented in old form
29 R$+@$-.UUCP             $2!$1                           u@h.UUCP => h!u
31 # delete duplicate local names
32 R$+%$=w@$=w             $1@$w                           u%host@host => u@host
33 R$+%$=w@$=w.$D          $1@$w                           u%host@host => u@host