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

  1.  
  2.  
  3.  
  4.    =====( CheckInbound V1.00 )=======================================
  5.  
  6.  
  7.         Trion 'CheckInbound' Utility.
  8.  
  9.         (c) Copyright Paul Spijkerman, 1997. All rights reserved.
  10.  
  11.         Written for use with the Trion BBS package.
  12.  
  13.  
  14.    ===================================================================
  15.  
  16.  
  17.    CheckInbound is a little Utility which will check if there
  18.    are files in the Inbound directory.
  19.    If there are no files it will return 5 (WARN) and if there are
  20.    files it will return 0.
  21.  
  22.    Which is usefull in the mail script, with the information
  23.    this utility provides you know which programms have to
  24.    be run instead you have to run them all.
  25.  
  26.    When there are no files you only have to run the
  27.    mail processor in the PACK mode because a user may have written
  28.    a message.
  29.    If there are files you have to run the Tick Processor to
  30.    check if there are tic files and to process them.
  31.    You have to start the mail processor in UNPACK mode,
  32.    then you have to start the areafix programm to check
  33.    if there is netmail to process and then you have
  34.    to start the mail processor in PACK mode.
  35.  
  36.    If you only start the mail processor in unpack mode
  37.    if there are no files the mail script is finished
  38.    in a second or two and the log files grow a lot
  39.    slower because the programmas are only fired up
  40.    a few times a day instead of loads at every opertunity.
  41.  
  42.  
  43.  
  44.    Use a -Q on the command line to run the util quite and
  45.    type the directory name of your inbound dir on the
  46.    command line if you don't use the default (Trion:inbound/)
  47.    inbound directory.
  48.  
  49.    Use something like this in your mail script (compacted version):
  50.  
  51.  
  52. CheckInbound -q
  53. if WARN
  54.    ;mail processor in pack mode
  55. else
  56.    ;process ticks
  57.    ;unpack mail
  58.    ;areafix
  59.    ;pack mail
  60. endif
  61.  
  62.  
  63.  
  64.  
  65.     Here is the default Trion mail script (trion:scripts/mail)
  66.     as an example how it is used:
  67.  
  68.  
  69.  
  70.  
  71. ;;;  Script to proces mail and .TIC files.
  72.  
  73. wait 2
  74.  
  75. avail flush >nil:
  76.  
  77. trion  -max  "Mail processor is started, system can be a little slower"
  78.  
  79. trion:utils/CheckInbound -q
  80.  
  81. if WARN
  82.    trion:utils/tmp P -d
  83. else
  84.  
  85.    ;;;  process  .TIC files
  86.  
  87.    trion:utils/TrionTick  -p -b
  88.  
  89.    ;CD trion:inbound       ;;; to enable unpacking ARC and ARJ archives
  90.  
  91.    trion:utils/tmp  U -c -b -f -d
  92.  
  93.    ;CD trion:              ;;; to enable unpacking ARC and ARJ archives
  94.  
  95.    trion:utils/areafix   F -d
  96.  
  97.    trion:utils/tmp  P    -d
  98.  
  99. endif
  100.  
  101. trion  -m -a -x  "Mail processor is Finished !"
  102.  
  103.