home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / ntmgrg2.zip / NETMGR.CFG < prev    next >
Text File  |  1995-12-22  |  11KB  |  381 lines

  1. ; ======================================================================
  2. ;
  3. ;  NetMgr -  copy, move, delete, change and bounce netmail. (+ more :-)
  4. ;
  5. ;          (c) 1992,93,94,95  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. ; NetMgr will exit as soon as an error is detected in the
  21. ; configuration (for the same reason: safety first). So if
  22. ; you change anything in the config, you should first give
  23. ; it a 'test run'.
  24. ;
  25. ; ------
  26. ;
  27. ; First your primary address.
  28. ; The zone is used as a default value for 'zoneless'
  29. ; messages...
  30. ;
  31. ; This *must* be a full 4D address (as all addresses in
  32. ; netmgr.cfg should be..). This is a bit 'strict checking',
  33. ; but with actions like 'delete' I want to take no risks.
  34.  
  35. Home 2:281/527.0
  36.  
  37. ;
  38. ; If you have a Hudson base, you can specify where it is located with the
  39. ; following keyword. Do *not* use this keyword if you don't have a Hudson
  40. ; base!
  41. ;
  42.  
  43. HudsonPath d:\msgs\hudson
  44.  
  45. ;
  46. ; If you are using Squishmail together with Binkley, you may
  47. ; want to specify the follwoing keyword.
  48. ; READ THE DOCS REGARDING THIS KEYWORD!
  49. ;
  50.  
  51. ;NoFlags
  52.  
  53. ;
  54. ; If you want to FORCE NetMgr to put an INTL kludge on _every_ message
  55. ; that is somehow writes (for example even in a rewrite!), set this
  56. ; to 'yes'. Usually not needed.
  57. ; Please note, that for newly created messages (for example with 'bounce'
  58. ; and such keywords, NetMgr will always include an INTL kludge anyway!).
  59. ;
  60.  
  61. INTLforce No
  62.  
  63. ;
  64. ; An originline, will be used for EchoCopy and EchoMove.
  65. ;
  66.  
  67. Origin   NetMgr, (c) 1992,93,94  Gerard van Essen
  68.  
  69. ;
  70. ; The location and name of your logfile. Leave this
  71. ; keyword out if you don't want a logfile.
  72. ;
  73.  
  74. Log c:\tc\netmgr\netmgr.log
  75.  
  76. ;
  77. ; The keyword below will make NetMgr log in a style that is much like
  78. ; the logfile that FrontDoor generates. If you leave this out, the logfile
  79. ; will look like the ones that Binkley generates.
  80. ;
  81.  
  82. FrodoLog
  83.  
  84. ;
  85. ; If you want NetMgr to generate echomail/netmail.jam files,
  86. ; use the keyword below to tell NetMgr where to put the files.
  87. ;
  88.  
  89. JamLog c:\ra\msgbase
  90.  
  91. ;
  92. ; Where your V7 nodelist is located (needed for nodelist tracking
  93. ; functions).
  94. ;
  95.  
  96. ;Nodelist C:\bt\nodelist
  97.  
  98. ;
  99. ; Where your Frodo nodelist is located (needed for nodelist tracking
  100. ; functions).
  101. ;
  102.  
  103. ;FDNodelist c:\frodo\nodelist
  104.  
  105. ;
  106. ; Where your GIGO nodelist is located (needed for nodelist tracking
  107. ; functions).
  108. ;
  109.  
  110. ;GIGONodelist c:\gateway\nodelist
  111.  
  112. ;
  113. ; Location of your nodelist cache (directory only)
  114. ;
  115.  
  116. NodelistCache c:\netmgr\
  117.  
  118. ;
  119. ;  Size of the nodelist cache.
  120. ;
  121.  
  122. CacheSize 250
  123.  
  124. ;
  125. ;  Your outbound directory (primary zone)
  126. ;
  127.  
  128. Outbound c:\binkley\out
  129.  
  130. ;
  131. ; The directories to scan, usually your primary netmail dir, I guess..
  132. ;
  133. ; A '$' in front of an area indicates a Squish style area.
  134. ;
  135. ; A '!' in front of an area indicates a JAM style area.
  136. ;
  137. ; A '#' in front of an area indicates a Hudson style area.
  138. ;
  139. ; You can have as many of these as you like, NetMgr will scan
  140. ; all of them.. (watch it! You may end up moving messages to the
  141. ; area you are currently scanning, which will cause PROBLEMS!).
  142. ;
  143. ; It will scan for the masks following the ScanDir statement(s),
  144. ; until a new ScanDir statement is encountered. (And will then
  145. ; scan that new ScanDir for Masks following *that* ScanDir).
  146. ;
  147.  
  148. ScanDir c:\fd\netmsgs renum
  149.  
  150. ScanDir $c:\msgs\netmail
  151.  
  152. ; ===========================================================
  153. ;
  154. ; Now for the real work:
  155. ;
  156. ; Always specify both one or more 'masks' (or Xmasks) and one or more
  157. ; corresponding 'actions' for those masks.
  158. ;
  159. ; See the docs for everything that is possible!
  160. ;
  161. ; ===========================================================
  162. ;
  163. ; This will delete all messages addressed to Harry Twit.
  164. ; It doesn't matter who sent it, from what address,
  165. ; what node it is addressed to, or what attributes it has,
  166. ; it will be lost forever :-)
  167. ;
  168. ; -----------------------------------------------------------
  169.  
  170. Mask *, *, Harry Twit, *, *, *
  171.  
  172. Action Delete
  173.  
  174. ; ===========================================================
  175. ;
  176. ; This will move all mail to a zone 60 address to a secondary
  177. ; (Squish style) netmail area..
  178. ;
  179. ; -----------------------------------------------------------
  180.  
  181. Mask *, *, *, 60:*/*.*, *, *
  182.  
  183. Action Move $c:\bink\msgs\net2
  184.  
  185. ; ===========================================================
  186. ;
  187. ; This will move all msgs addressed to me, that have the
  188. ; 'received' status, and *without* the L)ocal bit set, to
  189. ; another area (*.MSG style).
  190. ;
  191. ; And it will also do that with messages *from* me, that have
  192. ; the 'sent' and 'local' bits set.
  193. ;
  194. ; So, when *any* of the two masks is matched, the action
  195. ; is performed.
  196. ;
  197. ; -----------------------------------------------------------
  198.  
  199. Mask *, *, Gerard van.Essen, 2:281/527.0, *, +r-l
  200. Mask Gerard van.Essen, 2:281/527.0, *, *, *, +s+l
  201.  
  202. Action Move c:\msgs\rec_msg
  203.  
  204. ; ===========================================================
  205. ;
  206. ; This will take all msgs, coming from any point of 281/527,
  207. ; addressed to UUCP on 281/527, and set the point number to 0.
  208. ; It will also set the L)ocal and P)rivate bits ON, and strip
  209. ; any present C)rash attributes.
  210. ;
  211. ; I do this to fool my UUCP gate into thinking messages from
  212. ; my points are locally generated messages.
  213. ;
  214. ; After the rewrite, the message will be moved to a JAM style
  215. ; netmail areas.
  216. ;
  217. ; So, when the mask is matched, *two* actions will be performed
  218. ; on the message.
  219. ;
  220. ; -----------------------------------------------------------
  221.  
  222. Mask *, 2:281/527.*, uucp, 2:281/527.0, *, *
  223.  
  224. Action Rewrite *, *:*/*.0, *, *, *, +l+p-c
  225. Action Move !c:\fd\netfred
  226.  
  227.  
  228. ; ===========================================================
  229. ;
  230. ; This will bounce all messages addressed to 'John Doe' on
  231. ; 281/527, and put 'nojoe.txt' at the top of the message,
  232. ; that tells the sender that Joe's modem blew up :-)
  233. ; The origination address of the bounce-message is 2:281/527.
  234. ;
  235. ; -----------------------------------------------------------
  236.  
  237. Mask *, *, John Doe, 2:281/527.0, *, *
  238.  
  239. Action Bounce 2:281/527.0 nojoe.txt
  240.  
  241. ;
  242. ; Note that this will not DELETE the bounced message (This is
  243. ; on purpose, curious SysOps do a move after they bounced
  244. ; the message :-)
  245. ; They would do that like this:
  246. ;
  247.  
  248. Mask *, *, John Doe, 2:281/527.0, *, *
  249.  
  250. Action Bounce 2:281/527.0 nojoe.txt
  251. Action Move !c:\msgs\saved
  252.  
  253. ; ===========================================================
  254. ;
  255. ; This will take all messages coming from mailer@list at
  256. ; 2:281/527 and to list@receiver at 281/527, and copy them
  257. ; to an echomail area (a Hudson area, board 102), adding
  258. ; an origin and a seen-by line containing "281/527 528"
  259. ; (note that seen-by lines are 2D!). This prevents export
  260. ; of the message to 281/527 and 528.
  261. ;
  262. ; This is just treated as a 'text string', so be careful
  263. ; (NetMgr will happily add 'Howdy' if that's what you
  264. ; specify (not recommended :-)
  265. ;
  266. ; The 'local' bit will be set, and a newly generated MSGID
  267. ; will be added.
  268. ; The address used for origin & msgid is 2:281/527
  269. ;
  270. ; -----------------------------------------------------------
  271.  
  272. Mask mailer@list, 2:281/527.0, list@receiver, 2:281/527.0, *, *
  273.  
  274. Action EchoCopy 2:281/527.0 #102 281/527 528
  275.  
  276. ;
  277. ; The following will take messages addressed to a name
  278. ; that contains 'essen' (so messages to me, even with small
  279. ; misspellings) on 2:281/527.
  280. ; It will move those messages to a JAM netmail area.
  281. ;
  282.  
  283. Mask *, *, ~essen, 2:281/527.0, *, *
  284.  
  285. Action Move !c:\fd\netjam
  286.  
  287. ;
  288. ; The following will take all messages that are *not* written
  289. ; by 'Gerard van Essen', but are coming from 2:281/527 (my address,
  290. ; so probably one of my BBS users) and have the 'sent' status.
  291. ; Those messages will be moved to the special 'sent messages'
  292. ; area for BBS users.
  293. ;
  294.  
  295. Mask !Gerard van Essen, 2:281/527.0, *, *, *, +s
  296.  
  297. Action Move $c:\fd\usersent
  298.  
  299. ;
  300. ; This will generate a semaphore if any messages addressed to
  301. ; 'Areafix' are found. Together with:
  302. ; 'if exist c:\sems\areafix.sem areafix.exe'
  303. ; this can be used to run Areafix ONLY when there is actually a
  304. ; message waiting for it!
  305. ;
  306.  
  307. Mask *, *, Areafix, 2:281/527.0, *, *
  308.  
  309. Action Semaphore c:\sems\areafix.sem
  310.  
  311. ;
  312. ; This will take any message addressed to a name with a '@'
  313. ; somewhere in the string (usually an Internet address!) and
  314. ; add that name to the body of the message (TO: <address>).
  315. ; In addition it will rewrite the TO: name to 'postmaster',
  316. ; ready for processing by the Internet gate.
  317. ;
  318.  
  319. Mask *, *, ~@, 2:281/527.0, *, *
  320.  
  321. Action UUCPRewrite *, *, postmaster, *, *, *
  322.  
  323. ;
  324. ; This will write all local messages addressed to 1:138/211
  325. ; to a file called outusa.txt.
  326. ;
  327.  
  328. Mask *, *, *, 1:138/211.0, *, +l
  329.  
  330. Action File c:\msgs\outusa.txt
  331.  
  332. ;
  333. ;  ----- === ----- === ----- === ----- === ----- === -----
  334. ;
  335. ;  End of first section, now we specify another ScanDir, that
  336. ;  will be scanned for the masks that follow.
  337. ;
  338. ;  ----- === ----- === ----- === ----- === ----- === -----
  339. ;
  340.  
  341. ;
  342. ;  Spefify another ScanDir. NetMgr will close the other areas
  343. ;  and start scanning this one..
  344. ;  Here we specify a Hudson area, board number 21:
  345. ;
  346.  
  347. ScanDir #21
  348.  
  349. ;
  350. ; And we scan that area (board #21) for the following masks(s):
  351. ;
  352.  
  353.  
  354. ;
  355. ; Take messages addressed to 'Pietje Puk' on 2:281/527, bounce it to
  356. ; the sender, write it to file, forward it to Pietje Puk on 2:300/1
  357. ; and then delete the original.
  358. ;
  359.  
  360. Mask *, *, Pietje Puk, 2:281/527.0, *, *
  361. Action Bounce 2:281/527.0, c:\txt\newaddr.txt
  362. Action File c:\msgs\pietje.txt
  363. Action Forward Art, 2:281/527.0, Pietje Puk, 2:300/1.0, Readdressed mail, *
  364. Action Delete
  365.  
  366.  
  367. ;
  368. ; This will look for a message addressed to 'freqnow' and with
  369. ; 'password' as the subject.
  370. ; It will then generate a file-request message (+f attribute) to
  371. ; 1:138/211, with the contents of 'freq.txt' as it's body.
  372. ;
  373.  
  374. Mask Remote SysOp, 2:281/527.1, Freqnow, 2:281/527.0, password, *
  375. Action Makemsg freq.txt SysOp, 2:281/527.0, SysOp, 1:138/211.0, files, +c+l+f
  376.  
  377. ;
  378. ; // End of sample config file..
  379. ;
  380.  
  381.