home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / trionbbs110 / Trion / docs / Utils / CheckIfMail.doc < prev    next >
Encoding:
Text File  |  1998-10-06  |  2.2 KB  |  79 lines

  1.  
  2.  
  3.  
  4.    =====( CheckIfMail V1.00 )=============================================
  5.  
  6.  
  7.         Trion 'CheckIfMail' Utility.
  8.  
  9.         (c) Copyright Paul Spijkerman, '94-'97. All rights reserved.
  10.  
  11.         Written for use with the Trion BBS package.
  12.  
  13.  
  14.    ===================================================================
  15.  
  16.  
  17.    CheckIfMail is a tiny Utility that checks if there is mail
  18.    for one of more node numbers and exits with a value 30 if
  19.    there isn't.
  20.    If it is used in a script, the script will exit if there is
  21.    no mail. Or you could jump to an alternative part of the
  22.    script if you use failat to change the return value wich
  23.    terminates a script.
  24.  
  25.    This is usefull for pollscripts.
  26.  
  27.    Check the PollHub and MayPoll scripts in the Trion:scripts/
  28.    directory for examples.
  29.  
  30.    The PollHub script will tell the user online that the node
  31.    will disconnect him and call out in a few minutes.
  32.    Then it will tell him he will be disconnected in a minute.
  33.    Then he will be disconnected and the script will make
  34.    sure there is mail for 'the other side' and call
  35.    out a number of times until there was a connect.
  36.  
  37.    If you want to change the PollHub script in a script that
  38.    only calls out when there is mail for the other side you
  39.    just remove the line 'Poll <node>' and it will work.
  40.    But it will still present the user online on this node
  41.    with messages that he will be disconnected in a minute
  42.    for a mail call so you start the script with the CheckIfMail
  43.    Utility. After these 2 changes you have the MayPoll script.
  44.  
  45.  
  46.    The use of CheckIfMail is:
  47.  
  48.    CheckIfMail NodeNumber <NodeNumbers>
  49.  
  50.  
  51.    For instance:
  52.  
  53.    CheckIfMail  14:103/2
  54.    CheckIfMail  14:103/2  350:1001/0
  55.  
  56.    (If you get more nets from your boss, hub or host you may
  57.     want to user more nodenumbers)
  58.  
  59.  
  60.    If you want to use CheckIfMail in a script start it with
  61.    something like the folowing:
  62.    With these lines you can call the script with a nodenumber
  63.    and start CheckIfMail with that nodenumber.
  64.  
  65.  
  66.  
  67.  
  68.  
  69. .key node
  70. .def node=14:103/2
  71.  
  72. ;;; Script to poll your host/hub and disconnect the user if online.
  73. ;;; (Only poll when there is mail for the other system)
  74.  
  75. ;;; Exit if there is no mail for <node> in trion:outbound/
  76.  
  77. CheckIfMail  <node>
  78.  
  79.