home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
packet
/
bb211
/
action.doc
< prev
next >
Wrap
Text File
|
1991-03-02
|
8KB
|
227 lines
The action file includes all sorts of things to be done with messages. The
operations are shown below. {search} is any search for a message as
specified in SEARCH.DOC. Comments are any line that starts with ; or *
There are two types of operations: Immediate and Deferred. Immediate
actions occur on messages being received. Deferred actions occur only when
the proper "A" command is executed.
IMMEDIATE ACTIONS
--------- -------
HOLD {search}
This says to hold a message that matches the search. Files will be
marked as held by SYSOP. {search} is any search for a message as
specified in SEARCH.DOC.
Example:
HOLD < AA4RE
Holds all messages from AA4RE
HOLD_OLD {search}
This says to hold a message that matches the search but reason will
be too old rather than help by operator. {search} is any search for
a message as specified in SEARCH.DOC.
Example:
HOLD < AA4RE
Holds all messages from AA4RE
REJECT {search}
This says to reject a message that matches the search. A rejected
message may not even arrive at the BBS. Also see the parameter
REJECT_ACTION in PARMS.DOC. {search} is any search for a message as
specified in SEARCH.DOC.
Example:
REJECT > SALE & @ USA
Rejects all messages addressed to SALE @ USA
Note: The first pass at a reject action occurs when just the
the send command is received. Some fields are not available
for testing like SUBJECT and FROM-BBS.
DENY_NEW_MSG {message_num} {search}
This says to not permit a user to originate a message at this BBS.
The {message_num} parameter indicates which message is to be
displayed if the {search} is met. It will be between 0 at 9. The
real message number will be 140 + this parameter. {search} is any
search for a message as specified in SEARCH.DOC.
Examples:
DENY_NEW_MSG 3 > SALE & @ USA
Rejects all messages addressed to SALE @ USA and uses
message # 143
DENY_NEW_MSG 2 C U & ^ > SYSOP
Reject any messages from new or unregistered users unless
addressed to SYSOPand uses message # 142
Note: The deny action will be checked twice. Once before the
subject is available and once afterwards.
Note 2: DENY_NEW_MSG should appear before REJECT and HOLD in the
ACTION.BB
CHANGE_ADR {search} => {address}
Changes an address. {search} is any search for a message as
specified in SEARCH.DOC. {address} is a standard packet address in
the form of "xxxx @ yyyy.zzzz". xxxx must be supplied and valid. The
others can be omitted but the defaults may not fit what you want.
Any of the three (xxxx, yyyy, or zzzz) can be "=" which means leave
the same as before or the special word "NONE" which means to erase
this part of the address.
Examples:
CHANGE_ADR & @ USA => = @ ALLUS
CHANGE_ADR > 4SALE & @ USA => SALE @ =
DISTRIBUTE {name} {search}
Specifies which distribution/carbon-copy list is to be used. If
{name} is a simple word, it will follow the normal name resolution.
If {name} is an actual file, that will supercede the name resolution
system. {search} is any search for a message as specified in
SEARCH.DOC.
Examples:
DISTRIBUTE ALLCA @ ALLUS
Use ALLCA for messages addressed to ALLUS. First ALLCA.CC
will be tried then ALLCA.DIS
DISTRIBUTE C:\BB\DISTINFO\ALLCA.DIS @ ALLUS
Use the file C:\BB\DISTINFO\ALLCA.DIS for messages addressed
to ALLUS.
DEFERRED ACTIONS
-------- -------
MAKE_FILE {fileid} {search}
MAKE_FILE_REPLACE
MAKE_FILE_APPEND
Makes a file from a message. {fileid} is the file to be used be
used. Susbstitution parameters that are the same as for messages
(see MESSAGE.BB) can be used. The file must not exist for MAKE_FILE.
If MAKE_FILE_REPLACE is used, then if the file already exists, it
will be replaced. If MAKE_FILE_APPEND is used, the the message will
be added at the end of the file; if the file doesn't exist, it will
be created. {search} is any search for a message as specified in
SEARCH.DOC.
Examples:
MAKE_FILE C:\RACES\$b > RACES & $ RACESBUL.*
Change anything addressed to RACES with a BID of RACESBUL into a
file and stick it into the RACES subdirectory
MAKE_FILE_REPLACE C:\ARRL\ARRLPROP $ ARLP*
A propagation bulletin will replace its predessor in the file
called ARRLPROP.
CLEAN_MSGS {type} {search}
Used for general message housekeeping. Its purpose is to remove
superceded messages like AMSAT orbitial data. {type} indicates ARRL,
AMSAT, RACES, RTTYDX, GENERATE, or DATE. This refers to how the BID
is used. Both RACES and ARRL bids end in numbers but the ARRL
numbers are recycled at the end of the year. AMSAT news and orbital
data have the format that looks like xxx-ddd.vv where the applicable
number (ddd) is just in front of the "." RTTYDX uses a format of
xxxxxxxdddx. If the GENERATE {type} is used, the standarded
generated bid of dddddd_bbs is assumed. If {type} is DATE, then only
the last message received will be kept and the bid is ignored.
{search} is any search for a message as specified in SEARCH.DOC.
Examples:
CLEAN_MSGS ARRL $ ARLP###
CLEAN_MSGS ARRL $ ARLD###
CLEAN_MSGS ARRL $ ARLS###
CLEAN_MSGS AMSAT $ ORBS-###.*
CLEAN_MSGS AMSAT $ ANS-###.##
CLEAN_MSGS RACES $ RACESBUL.###
CLEAN_MSGS RTTYDX $ RTDX####=
These examples clean away old ARRL DX bulletins, prop bulletins,
satellite bulletins, AMSAT orbitial data, AMSAT news, and RACES
bulletins.
Note 1: Both AMSAT and ARRL types have special code to cover the
yearend wrap (Example: when ARLD052 is followed by ARLD001)
Note 2: GENERATE has special code to ignore the distant BBS doing
a message renumber.
ORDERING
--------
The first match that is seen will be acted on. Example
REJECT > SALE & @ USA
HOLD @ USA
A message addressed to SALE @ USA will be rejected because the REJECT is
seen first. The message addressed to ALL @ USA will just be held.
Also, the order is import for CHANGE_ADR and HOLD. Example:
HOLD @ ALLUS
CHANGE @ USA => = @ ALLUS
Messages @ USA will NOT be held since the change action is executed
after the HOLD action.
One further example:
CHANGE_ADR > SYSOP & @ AA4RE => AA4RE
CHANGE_ADR @ AA4RE => = @ NONE
If a message comes in addressed to SYSOP @ AA4RE, it is readdressed
to AA4RE @ AA4RE. Why not AA4RE @ (blank)? The first line satisfied
the search so the search stopped. The correct way to do this is:
CHANGE_ADR > SYSOP & @ AA4RE => AA4RE @ NONE
CHANGE_ADR @ AA4RE => = @ NONE
You must make all the action happen with the one line!
NEGATION
--------
Putting a NO in front of a word will negate it. Example:
NOHOLD > SALE & @ USA
HOLD @ USA
A message addressed to SALE @ USA will go thru because the NOHOLD is
seen first. The message addressed to ALL @ USA will be held.
Note: NOCHANGE_ADR does not require the => xxxx @ yyyy.ZZZZ portion.
Example:
NOCHANGE > ALL & @ USA