home *** CD-ROM | disk | FTP | other *** search
-
-
-
- =====( CheckIfMail V1.00 )=============================================
-
-
- Trion 'CheckIfMail' Utility.
-
- (c) Copyright Paul Spijkerman, '94-'97. All rights reserved.
-
- Written for use with the Trion BBS package.
-
-
- ===================================================================
-
-
- CheckIfMail is a tiny Utility that checks if there is mail
- for one of more node numbers and exits with a value 30 if
- there isn't.
- If it is used in a script, the script will exit if there is
- no mail. Or you could jump to an alternative part of the
- script if you use failat to change the return value wich
- terminates a script.
-
- This is usefull for pollscripts.
-
- Check the PollHub and MayPoll scripts in the Trion:scripts/
- directory for examples.
-
- The PollHub script will tell the user online that the node
- will disconnect him and call out in a few minutes.
- Then it will tell him he will be disconnected in a minute.
- Then he will be disconnected and the script will make
- sure there is mail for 'the other side' and call
- out a number of times until there was a connect.
-
- If you want to change the PollHub script in a script that
- only calls out when there is mail for the other side you
- just remove the line 'Poll <node>' and it will work.
- But it will still present the user online on this node
- with messages that he will be disconnected in a minute
- for a mail call so you start the script with the CheckIfMail
- Utility. After these 2 changes you have the MayPoll script.
-
-
- The use of CheckIfMail is:
-
- CheckIfMail NodeNumber <NodeNumbers>
-
-
- For instance:
-
- CheckIfMail 14:103/2
- CheckIfMail 14:103/2 350:1001/0
-
- (If you get more nets from your boss, hub or host you may
- want to user more nodenumbers)
-
-
- If you want to use CheckIfMail in a script start it with
- something like the folowing:
- With these lines you can call the script with a nodenumber
- and start CheckIfMail with that nodenumber.
-
-
-
-
-
- .key node
- .def node=14:103/2
-
- ;;; Script to poll your host/hub and disconnect the user if online.
- ;;; (Only poll when there is mail for the other system)
-
- ;;; Exit if there is no mail for <node> in trion:outbound/
-
- CheckIfMail <node>
-
-