home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / pcboard / ntmgr95.zip / NETMGR.CFG < prev    next >
Text File  |  1993-05-20  |  8KB  |  254 lines

  1. ; ==============================================================
  2. ;
  3. ;    NetMgr -  copy, move, delete, change and bounce netmail..
  4. ;
  5. ;          (c) 1992,93  Gerard van Essen (2:281/527)
  6. ;
  7. ; ==============================================================
  8. ;
  9. ;
  10. ; For 'debugging' purposes you can start netmgr with the
  11. ; -d command line switch. This will send NetMgr's interpretation
  12. ; of your config file to stdout.
  13. ; While scanning your netmail area, it will also send some info
  14. ; about the headers of the messages to stdout.
  15. ; You can easily redirect it to a file (netmgr -d > debug.txt)
  16. ; for inspection.
  17. ;
  18. ; ------
  19. ;
  20. ; Your address, used as orig-address for bounce messages.
  21. ; The zone is also used as a default value for 'zoneless'
  22. ; messages...
  23. ;
  24. ; This address is also used for EchoCopy and EchoMove, as
  25. ; the address to be used in the origin, and to generate
  26. ; the MSGID with.
  27. ;
  28. ; This *must* be a full 4D address (as all addresses in
  29. ; netmgr.cfg should be..). This is a bit 'strict checking',
  30. ; but with actions like 'delete' I want to take no risks.
  31. ;
  32. ; NetMgr will exit as soon as an error is detected in the
  33. ; configuration (for the same reason: safety first). So if
  34. ; you change anything in the config, you should first give
  35. ; it a 'test run'.
  36. ;
  37.  
  38. Home 2:281/527.0
  39.  
  40. ;
  41. ; The directories to scan, usually your primary netmail dir, I guess..
  42. ;
  43. ; A '$' in front of an area indicates a Squish style area.
  44. ;
  45. ; You can have as many of these as you like, NetMgr will scan
  46. ; all of them..
  47. ;
  48.  
  49. ScanDir c:\fd\netmsgs
  50.  
  51. ScanDir $c:\msgs\netmail
  52.  
  53. ;
  54. ; An originline, will be used for EchoCopy and EchoMove.
  55. ;
  56.  
  57. Origin   NetMgr, (c) 1992  Gerard van Essen
  58.  
  59. ;
  60. ; The location and name of your logfile. Leave this
  61. ; keyword out if you don't want a logfile.
  62. ;
  63.  
  64. Log c:\tc\netmgr\netmgr.log
  65.  
  66. ; ===========================================================
  67. ;
  68. ; Now for the real work:
  69. ;
  70. ; Always specify both a 'mask' and 1 corresponding 'action'.
  71. ;
  72. ; A MASK consists of five parts:
  73. ;
  74. ; fromname, fromaddress, toname, toaddress, attributes
  75. ;
  76. ; -=-
  77. ;
  78. ; A 'name' is just a string, leading and trailing spaces are
  79. ; stripped, space *in* a string are allowed.
  80. ;
  81. ; -=-
  82. ;
  83. ; An address is *always* full 4D, write a '*' for any part
  84. ; you don't care about:
  85. ;
  86. ; 60:*/*.*     -   all messages coming from zone 60
  87. ; 2:281/527.*  -   msg from any point from 281/527, or .0
  88. ; *:500/*.*    -   all msgs from nodes/points in net 500, any zone
  89. ; 2:281/527.0  -   only messages from 2:281/527 (the node, not points)
  90. ;
  91. ; Just one exception: specifying just a '*' only for the address,
  92. ; is allowed (strictly speaking, it is not full 4D :-), and is the
  93. ; same as *:*/*.*.
  94. ;
  95. ; -=-
  96. ;
  97. ; Attributes can be one or more of the following:
  98. ;
  99. ; p = private
  100. ; c = crash
  101. ; r = received
  102. ; s = sent
  103. ; a = attach
  104. ; i = forward/intransit
  105. ; o = orphan
  106. ; k = kill
  107. ; l = local
  108. ; h = hold
  109. ; f = file request
  110. ; n = scaNned
  111. ;
  112. ; A '+' in front of an attribute means: must be present (or for a rewrite:
  113. ; must be added), a '-' means must *not* be present (or: must be removed
  114. ; for a rewrite).
  115. ;
  116. ;
  117. ; -=-
  118. ;
  119. ; An ACTION can be one of the following:
  120. ;
  121. ; COPY  <destination area>   - Copy msg to area
  122. ; MOVE  <destination area>   - Move msg to area
  123. ; DELETE                     - Delete message
  124. ; BOUNCE  <bounce text file> - Return msg to sender, add bounce text at
  125. ;                              the top.
  126. ; REWRITE  <mask>            - Rewrite header
  127. ;
  128. ; A rewrite mask may contain the wildcard token ('*') as well.
  129. ; All fields where a '*' is specified will be left unchanged.
  130. ;
  131. ; ECHOCOPY <area> <seenby>   - Copy, add origin, and (optionally)
  132. ;                              SEEN-BY: line. Leave SEEN-BY: info out if
  133. ;                              you don't want it. The text put here is
  134. ;                              just duplicated in the SEEN-BY line, so
  135. ;                              you can put more than one address here.
  136. ; ECHOMOVE <area> <seenby>   - Move and add origin, SEEN-BY..
  137. ;
  138. ; ===========================================================
  139. ;
  140. ; This will delete all messages addressed to Harry Twit.
  141. ; It doesn't matter who sent it, from what address,
  142. ; what node it is addressed to, or what attributes it has,
  143. ; it will be lost forever :-)
  144. ;
  145. ; -----------------------------------------------------------
  146.  
  147. Mask *, *, Harry Twit, *, *
  148.  
  149. Action Delete
  150.  
  151. ; ===========================================================
  152. ;
  153. ; This will move all mail to a zone 60 address to a secondary
  154. ; (Squish style) netmail area..
  155. ;
  156. ; -----------------------------------------------------------
  157.  
  158. Mask *, *, *, 60:*/*.*, *
  159.  
  160. Action Move $c:\bink\msgs\net2
  161.  
  162. ; ===========================================================
  163. ;
  164. ; This will move all msgs addressed to me, that have the
  165. ; 'received' status, and *without* the L)ocal bit set, to
  166. ; another area (*.MSG style).
  167. ;
  168. ; -----------------------------------------------------------
  169.  
  170. Mask *, *, Gerard van.Essen, 2:281/527.0, +r-l
  171.  
  172. Action Move c:\msgs\rec_msg
  173.  
  174. ; ===========================================================
  175. ;
  176. ; This will take all msgs, coming from any point of 281/527,
  177. ; addressed to UUCP on 281/527, and set the point number to 0.
  178. ; It will also set the L)ocal and P)rivate bits ON, and strip
  179. ; any present C)rash attributes.
  180. ;
  181. ; I do this to fool my UUCP gate into thinking messages from
  182. ; my points are locally generated messages.
  183. ;
  184. ; -----------------------------------------------------------
  185.  
  186. Mask *, 2:281/527.*, uucp, 2:281/527.0, *
  187.  
  188. Action Rewrite *, *:*/*.0, *, *, +l+p-c
  189.  
  190. ; ===========================================================
  191. ;
  192. ; This will take all msgs, coming from 2:281/527.0,
  193. ; addressed to UUCP on 281/527, and move it to another area.
  194. ;
  195. ; I do this to move netmail from my primary (Squish style)
  196. ; netmail area to a *.MSG area (my UUCP gate doesn't support
  197. ; Squish style areas..).
  198. ;
  199. ; -----------------------------------------------------------
  200.  
  201. Mask *, 2:281/527.0, uucp, 2:281/527.0, *
  202.  
  203. Action Move c:\fd\netfred
  204.  
  205. ;
  206. ; The fun part of the above: NetMgr will *go on* scanning for
  207. ; a mask that matches the current message (not with move and
  208. ; delete of course), even if it already found a match.
  209. ;
  210. ; In the above, NetMgr will first hit the 'rewrite' mask and
  211. ; rewrite the message, then it'll hit the 'move' mask (the
  212. ; just rewritten message will match even the from .0 part..)
  213. ; and move it to the \netfred area...
  214. ;
  215.  
  216. ; ===========================================================
  217. ;
  218. ; This will bounce all messages addressed to 'John Doe' on
  219. ; 281/527, and put 'nojoe.txt' at the top of the message,
  220. ; that tells the sender that Joe's modem blew up :-)
  221. ;
  222. ; -----------------------------------------------------------
  223.  
  224. Mask *, *, John Doe, 2:281/527.0, *
  225.  
  226. Action Bounce nojoe.txt
  227.  
  228. ;
  229. ; Note that this will not DELETE the bounced message (This is
  230. ; on purpose, curious SysOps do a move after they bounced
  231. ; the message :-)
  232.  
  233. ; ===========================================================
  234. ;
  235. ; This will take all messages coming from mailer@list at
  236. ; 2:281/527 and to list@receiver at 281/527, and copy them
  237. ; to an echomail area, adding an origin and a seen-by line
  238. ; containing "281/527 528" (note that seen-by lines are 2D!).
  239. ; This prevents export of the message to 281/527 and 528.
  240. ; This is just treated as a 'text string', so be careful (NetMgr
  241. ; will happily add 'Howdy' if that's what you specify (not
  242. ; recommended :-)
  243. ;
  244. ; The 'local' bit will be set, and a newly generated MSGID will
  245. ; be added. The address used for origin & msgid are taken from
  246. ; the 'Home' config keyword.
  247. ;
  248. ; -----------------------------------------------------------
  249.  
  250. Mask mailer@list, 2:281/527.0, list@receiver, 2:281/527.0, *
  251.  
  252. Action EchoCopy $c:\local\contrast 281/527 528
  253.  
  254.