home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / base / root.15 / etc / mail / cf / mailer / mail11.m4 / mail11
Text File  |  1998-08-19  |  2KB  |  52 lines

  1. PUSHDIVERT(-1)
  2. #
  3. # Not exciting enough to bother with copyrights and most of the
  4. # rulesets are based from those provided by DEC.
  5. # Barb Dijker, Labyrinth Computer Services, barb@labyrinth.com
  6. #
  7. # This mailer is only useful if you have DECNET and the
  8. # mail11 program - gatekeeper.dec.com:/pub/DEC/gwtools.
  9. # For local delivery of DECNET style addresses to the local
  10. # DECNET node, you will need feature(use_cw_file) and put
  11. # your DECNET nodename in in the cw file.
  12. #
  13. ifdef(`MAIL11_MAILER_PATH',, `define(`MAIL11_MAILER_PATH', /usr/etc/mail11)')
  14. ifdef(`MAIL11_MAILER_FLAGS',, `define(`MAIL11_MAILER_FLAGS', nsFx)')
  15. ifdef(`MAIL11_MAILER_ARGS',, `define(`MAIL11_MAILER_ARGS', mail11 $g $x $h $u)')
  16. define(`_USE_DECNET_SYNTAX_')
  17. define(`_LOCAL_', ifdef(`confLOCAL_MAILER', confLOCAL_MAILER, `local'))
  18.  
  19. POPDIVERT
  20.  
  21. PUSHDIVERT(3)
  22. # DECNET delivery
  23. R$* < @ $=w .DECNET. >        $#_LOCAL_ $: $1            local DECnet
  24. R$+ < @ $+ .DECNET. >        $#mail11 $@ $2 $: $1        DECnet user
  25. POPDIVERT
  26.  
  27. PUSHDIVERT(6)
  28. CPDECNET
  29. POPDIVERT
  30.  
  31. ###########################################
  32. ###   UTK-MAIL11 Mailer specification   ###
  33. ###########################################
  34.  
  35. VERSIONID(`@(#)mail11.m4    8.4 (Berkeley) 3/18/97')
  36.  
  37. Mmail11, P=MAIL11_MAILER_PATH, F=MAIL11_MAILER_FLAGS, S=15, R=25,
  38.     A=MAIL11_MAILER_ARGS
  39.  
  40. S15
  41. R$+            $: $>25 $1        preprocess
  42. R$w :: $+        $@ $w :: $1        ready to go
  43.  
  44. S25
  45. R$+ < @ $- .UUCP >    $: $2 ! $1        back to old style
  46. R$+ < @ $- .DECNET >    $: $2 :: $1        convert to DECnet style
  47. R$+ < @ $- .LOCAL >    $: $2 :: $1        convert to DECnet style
  48. R$+ < @ $=w. >        $: $2 :: $1        convert to DECnet style
  49. R$=w :: $+        $2            strip local names
  50. R$+ :: $+        $@ $1 :: $2        already qualified
  51.