home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
pcboard
/
ntmgr95p.zip
/
NETMGR.CFG
< prev
next >
Wrap
Text File
|
1993-05-20
|
8KB
|
254 lines
; ==============================================================
;
; NetMgr - copy, move, delete, change and bounce netmail..
;
; (c) 1992,93 Gerard van Essen (2:281/527)
;
; ==============================================================
;
;
; For 'debugging' purposes you can start netmgr with the
; -d command line switch. This will send NetMgr's interpretation
; of your config file to stdout.
; While scanning your netmail area, it will also send some info
; about the headers of the messages to stdout.
; You can easily redirect it to a file (netmgr -d > debug.txt)
; for inspection.
;
; ------
;
; Your address, used as orig-address for bounce messages.
; The zone is also used as a default value for 'zoneless'
; messages...
;
; This address is also used for EchoCopy and EchoMove, as
; the address to be used in the origin, and to generate
; the MSGID with.
;
; This *must* be a full 4D address (as all addresses in
; netmgr.cfg should be..). This is a bit 'strict checking',
; but with actions like 'delete' I want to take no risks.
;
; NetMgr will exit as soon as an error is detected in the
; configuration (for the same reason: safety first). So if
; you change anything in the config, you should first give
; it a 'test run'.
;
Home 2:281/527.0
;
; The directories to scan, usually your primary netmail dir, I guess..
;
; A '$' in front of an area indicates a Squish style area.
;
; You can have as many of these as you like, NetMgr will scan
; all of them..
;
ScanDir c:\fd\netmsgs
ScanDir $c:\msgs\netmail
;
; An originline, will be used for EchoCopy and EchoMove.
;
Origin NetMgr, (c) 1992 Gerard van Essen
;
; The location and name of your logfile. Leave this
; keyword out if you don't want a logfile.
;
Log c:\tc\netmgr\netmgr.log
; ===========================================================
;
; Now for the real work:
;
; Always specify both a 'mask' and 1 corresponding 'action'.
;
; A MASK consists of five parts:
;
; fromname, fromaddress, toname, toaddress, attributes
;
; -=-
;
; A 'name' is just a string, leading and trailing spaces are
; stripped, space *in* a string are allowed.
;
; -=-
;
; An address is *always* full 4D, write a '*' for any part
; you don't care about:
;
; 60:*/*.* - all messages coming from zone 60
; 2:281/527.* - msg from any point from 281/527, or .0
; *:500/*.* - all msgs from nodes/points in net 500, any zone
; 2:281/527.0 - only messages from 2:281/527 (the node, not points)
;
; Just one exception: specifying just a '*' only for the address,
; is allowed (strictly speaking, it is not full 4D :-), and is the
; same as *:*/*.*.
;
; -=-
;
; Attributes can be one or more of the following:
;
; p = private
; c = crash
; r = received
; s = sent
; a = attach
; i = forward/intransit
; o = orphan
; k = kill
; l = local
; h = hold
; f = file request
; n = scaNned
;
; A '+' in front of an attribute means: must be present (or for a rewrite:
; must be added), a '-' means must *not* be present (or: must be removed
; for a rewrite).
;
;
; -=-
;
; An ACTION can be one of the following:
;
; COPY <destination area> - Copy msg to area
; MOVE <destination area> - Move msg to area
; DELETE - Delete message
; BOUNCE <bounce text file> - Return msg to sender, add bounce text at
; the top.
; REWRITE <mask> - Rewrite header
;
; A rewrite mask may contain the wildcard token ('*') as well.
; All fields where a '*' is specified will be left unchanged.
;
; ECHOCOPY <area> <seenby> - Copy, add origin, and (optionally)
; SEEN-BY: line. Leave SEEN-BY: info out if
; you don't want it. The text put here is
; just duplicated in the SEEN-BY line, so
; you can put more than one address here.
; ECHOMOVE <area> <seenby> - Move and add origin, SEEN-BY..
;
; ===========================================================
;
; This will delete all messages addressed to Harry Twit.
; It doesn't matter who sent it, from what address,
; what node it is addressed to, or what attributes it has,
; it will be lost forever :-)
;
; -----------------------------------------------------------
Mask *, *, Harry Twit, *, *
Action Delete
; ===========================================================
;
; This will move all mail to a zone 60 address to a secondary
; (Squish style) netmail area..
;
; -----------------------------------------------------------
Mask *, *, *, 60:*/*.*, *
Action Move $c:\bink\msgs\net2
; ===========================================================
;
; This will move all msgs addressed to me, that have the
; 'received' status, and *without* the L)ocal bit set, to
; another area (*.MSG style).
;
; -----------------------------------------------------------
Mask *, *, Gerard van.Essen, 2:281/527.0, +r-l
Action Move c:\msgs\rec_msg
; ===========================================================
;
; This will take all msgs, coming from any point of 281/527,
; addressed to UUCP on 281/527, and set the point number to 0.
; It will also set the L)ocal and P)rivate bits ON, and strip
; any present C)rash attributes.
;
; I do this to fool my UUCP gate into thinking messages from
; my points are locally generated messages.
;
; -----------------------------------------------------------
Mask *, 2:281/527.*, uucp, 2:281/527.0, *
Action Rewrite *, *:*/*.0, *, *, +l+p-c
; ===========================================================
;
; This will take all msgs, coming from 2:281/527.0,
; addressed to UUCP on 281/527, and move it to another area.
;
; I do this to move netmail from my primary (Squish style)
; netmail area to a *.MSG area (my UUCP gate doesn't support
; Squish style areas..).
;
; -----------------------------------------------------------
Mask *, 2:281/527.0, uucp, 2:281/527.0, *
Action Move c:\fd\netfred
;
; The fun part of the above: NetMgr will *go on* scanning for
; a mask that matches the current message (not with move and
; delete of course), even if it already found a match.
;
; In the above, NetMgr will first hit the 'rewrite' mask and
; rewrite the message, then it'll hit the 'move' mask (the
; just rewritten message will match even the from .0 part..)
; and move it to the \netfred area...
;
; ===========================================================
;
; This will bounce all messages addressed to 'John Doe' on
; 281/527, and put 'nojoe.txt' at the top of the message,
; that tells the sender that Joe's modem blew up :-)
;
; -----------------------------------------------------------
Mask *, *, John Doe, 2:281/527.0, *
Action Bounce nojoe.txt
;
; Note that this will not DELETE the bounced message (This is
; on purpose, curious SysOps do a move after they bounced
; the message :-)
; ===========================================================
;
; This will take all messages coming from mailer@list at
; 2:281/527 and to list@receiver at 281/527, and copy them
; to an echomail area, adding an origin and a seen-by line
; containing "281/527 528" (note that seen-by lines are 2D!).
; This prevents export of the message to 281/527 and 528.
; This is just treated as a 'text string', so be careful (NetMgr
; will happily add 'Howdy' if that's what you specify (not
; recommended :-)
;
; The 'local' bit will be set, and a newly generated MSGID will
; be added. The address used for origin & msgid are taken from
; the 'Home' config keyword.
;
; -----------------------------------------------------------
Mask mailer@list, 2:281/527.0, list@receiver, 2:281/527.0, *
Action EchoCopy $c:\local\contrast 281/527 528