home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR11 / MAIL2FX2.ZIP / MAIL2FAX.DOC < prev    next >
Text File  |  1993-09-26  |  89KB  |  2,137 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                     Mail2Fax - Sending fax messages from your BBS.
  10.  
  11.  
  12.  
  13.           (c) 1993,  The Master Programmer Group.
  14.  
  15.  
  16.      A.   Overview
  17.  
  18.           Mail2Fax  allows you  to fax directly  from your  PcBoard system.
  19.           Users can send faxes or even receive their new mail via fax:
  20.  
  21.                √ Send faxes directly from your BBS
  22.                √ Supports Pcboard version 15, including new index files
  23.                √ Supports file sharing and multi-node systems
  24.                √ Works with almost any type of fax card or fax/data modem
  25.                √ Adds a new FAX command to your BBS (PPE file)
  26.                √ Supports locally entered and netmail fax messages
  27.                √ Complete control over long distance and local calls
  28.                √ Supports blocking of individual fax numbers and ranges
  29.                √ Supports use of alias names for commonly used fax numbers
  30.                √ System generates reply status messages automatically
  31.                √ Reply text fully customizable
  32.                √ Customized cover sheet generation
  33.                √ Cover sheet shows users name, & pages to follow
  34.                √ For faxes  from SYSOP,  cover sheet can  show your  proper
  35.           name
  36.                √ Fax calls logged to PcBoard's logfile
  37.                √ Supports tracking fax sent by user and charging for faxes
  38.                √ Supports use of USERS.INF (PSA/TPA)
  39.                √ New FORWARD  command (PPE)  allows user to  set faxing  of
  40.           unread mail
  41.                √ Supports Pcboard @variables and %Enviromment variables
  42.                √ Compact and very fast
  43.                √ Diagnostic option (DEBUG)
  44.                √  Very  complete  documentation, including  Troubleshooting
  45.           guide.
  46.  
  47.  
  48.           Mail2Fax software extends the  reach of your PCBoard BBS  for you
  49.           and your users.  With Mail2Fax  your users can enter messages  to
  50.           be  faxed.   You  can control  who uses  your  fax service;  what
  51.           numbers and areas may or may not  be called.  This is our FaxMail
  52.           service.
  53.  
  54.           You can specify the personalized coversheet used for each fax, as
  55.           well as the  text of  the various reply  messages the system  can
  56.           generate  depending on  whether  the fax  was sent  successfully;
  57.           encountered a busy signal etc.
  58.  
  59.  
  60.           Another feature of Mail2Fax  is that your users can  arrange that
  61.  
  62.           Ver 1.0                         1              September 26, 1993
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                     Mail2Fax - Sending fax messages from your BBS.
  71.  
  72.  
  73.           mail they receive  is automatically  faxed if not  read within  a
  74.           specified period.  We call this our FaxForward service.
  75.  
  76.  
  77.                On our board  (JOB SEARCH, dedicated to  helping people find
  78.                work), we've extended this even further.  When a new listing
  79.                is entered into our  jobs database, we match it  against the
  80.                selection criteria previously  specified.  When  the listing
  81.                matches a  user's criteria,  the software  sends the  user a
  82.                fax.   (To be exact, our  Query software creates  a QWK mail
  83.                packet, which is posted  to the board.   M2F then finds  the
  84.                messages to be faxed and sends them.)
  85.  
  86.  
  87.           With  Mail2Fax your users get  more use out  of your board, while
  88.           spending less time online.
  89.  
  90.           Best of all,  Mail2Fax (M2F) can track  how many faxes each  user
  91.           has sent,  allowing you to  bill for this  premium service.   M2F
  92.           even supports pre-payment of  faxes and can automatically disable
  93.           faxing privileges  for  a user  who  used up  his/her  allotment.
  94.           (With FORWARD mode only.)
  95.  
  96.  
  97.           M2F  will work with any fax modem  or board whose software can be
  98.           run from the  command line (non TSR mode) and  that will accept a
  99.           file name and fax number as parameters.  M2F has been extensively
  100.           and  successfully  tested with  a  Zyxel modem  and  Zyxel's ZFAX
  101.           software.
  102.  
  103.           Mail2Fax   is  distributed   as  shareware.      As  distributed,
  104.           non-registered copies are limited to  sending out the first three
  105.           lines  of a  fax only,  and FaxForward  is not  supported.   Upon
  106.           registering, you  will receive  a personalized keyfile  to enable
  107.           all features.
  108.  
  109.           This  document describes  our new  Mail2Fax software  for PcBoard
  110.           Bulletin Boards.  It covers how to install it  and how to use it,
  111.           and is written  for the SYSOP who has knowledge  of operating the
  112.           PcBoard  BBS as  well  as  of  installing  both  Door  and  Event
  113.           software.
  114.  
  115.  
  116.      B.   What is Mail2Fax
  117.  
  118.           Mail2Fax is a system for faxing messages from a PcBoard BBS.  The
  119.           M2F  package  consists  of   the  program  Mail2Fax.Exe  and  the
  120.           installable  PcBoard commands  FAX  and FORWARD  (implemented  as
  121.           SENDFAX.PPE and FORWARD.PPE).  The package also includes a number
  122.  
  123.           Ver 1.0                         2              September 26, 1993
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                     Mail2Fax - Sending fax messages from your BBS.
  132.  
  133.  
  134.           of  support  files,  such  as  COVRPAGE.TXT  which  contains  the
  135.           prototype text  for the fax  cover page,  and LOCALNNX.TXT  which
  136.           contains the list of telephone number prefixes your users may fax
  137.           to.
  138.  
  139.           M2F requires a Pcboard Version 15 system to operate, as well as a
  140.           fax  modem,  fax/data  modem  or  fax  card  and  associated  fax
  141.           software.  M2F  will NOT  operate with PcBoard  version 14.5a  or
  142.           earlier, nor with any other type of BBS!
  143.  
  144.  
  145.      C.   How it works
  146.  
  147.           The  Mail2Fax program scans the  message base for  messages to be
  148.           faxed.   When  it  finds  such  a  message,  it  creates  a  file
  149.           containing  the text for that  message (and coverpage).   It then
  150.           calls your  Fax software, passing it  the name of the  file to be
  151.           faxed and the telephone/fax number.
  152.  
  153.           The last step is  that Mail2Fax posts an automatic  reply message
  154.           in the PcBoard message base  to let the sender know that  the fax
  155.           was sent (or could not be sent).
  156.  
  157.           Mail2Fax recognizes that a message  is to be faxed in one  of two
  158.           ways:
  159.                » messages addressed to: "FAX MAIL@nnn-nnnn"
  160.                »  personal  messages  that  have not  been  read  within  a
  161.           specified period
  162.                  (and where the recipient user requested mail forwarding).
  163.  
  164.  
  165.           The first form is where  the sender used the Pcboard  FAX command
  166.           to enter a message to be faxed.  These messages have in their TO:
  167.           field  the name  "FAX MAIL", followed  by an  @ sign  and the fax
  168.           number.
  169.  
  170.           Actually you can configure Mail2Fax to scan for a name other than
  171.           "FAX  MAIL", as long  as it  is followed  by the  @ sign  and the
  172.           fax/telephone number.   You would  then also need  to change  the
  173.           SENDFAX.PPS file to also generate messages with the name you want
  174.           to use in lieu of FAX MAIL.
  175.  
  176.           On our  board we use "FAX  MAIL" for mail that  is locally faxed,
  177.           and "JOB SEARCH FAX"  for messages that are sent from other BBS's
  178.           via the network.  (See Config file FAXID and NETID entries.)
  179.  
  180.  
  181.           The second form of  faxing is FaxForward.  This  allows users who
  182.           use the board  infrequently to  have mail forwarded  to them  via
  183.  
  184.           Ver 1.0                         3              September 26, 1993
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                     Mail2Fax - Sending fax messages from your BBS.
  193.  
  194.  
  195.           their fax.   Here the recipient user decides that  the message is
  196.           to be faxed and when.
  197.  
  198.  
  199.           The  user uses the FORWARD  command to specify  that he/she wants
  200.           mail forwarded,  where and when (number  of days).  If  a message
  201.           addressed to that  user (i.e.,  not to ALL),  remains unread  for
  202.           more than  that number of days,  the system will fax it.   If the
  203.           user reads the message before that date, it will not be faxed.
  204.  
  205.           Note that MAIL2FAX will not fax the PcBoard Extended headers.  If
  206.           it finds any they are skipped, except @ATTENTN: which becomes the
  207.           @ATTN@ entry on the cover sheet.  In a future version we will use
  208.           the extended  headers SUBJ and  TO/TO2 (if present)),  instead of
  209.           their regular header equivalents.
  210.  
  211.  
  212.      D.   What you need
  213.  
  214.           To use this Mail2Fax software you need:
  215.  
  216.                » Pcboard software, version 15
  217.                » Fax board/modem
  218.                » Fax Software
  219.                » to install the Mail2Fax software and files
  220.  
  221.           Mail2Fax  will  ONLY  work   with  PcBoard  software  from  Clark
  222.           Development Corp., and only with the index file format introduced
  223.           with version 15.
  224.  
  225.           M2F will work with  most Fax cards  and modems, provided the  Fax
  226.           software for  that modem has a  "command line" mode  can run from
  227.           the command prompt,  and accepts  as parameters the  name of  the
  228.           file to  transmit and the fax number to fax it to.  For instance,
  229.           ZFAX,  the  software  included with  the  ZYXEL  modem,  would be
  230.           invoked as:
  231.  
  232.                C:> ZFAX  1  FAXFILE  5883821
  233.  
  234.           Here '1' means SEND the fax.
  235.  
  236.  
  237.           Some Fax software, such  as the BLASTFAX software that  came with
  238.           USR  Sportster modems, loads in  TSR mode, and  remains in memory
  239.           after finishing the transmission.  Such software is not usable.
  240.  
  241.           Similarly  WinFax Pro  and  Winfax Lite  are not  usable, however
  242.           DosFax Pro apparently is.
  243.  
  244.  
  245.           Ver 1.0                         4              September 26, 1993
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.                     Mail2Fax - Sending fax messages from your BBS.
  254.  
  255.  
  256.           MAIL2FAX invokes a program or batch file, whose name is specified
  257.           in  the M2F config file.  The batch  file can then invoke the fax
  258.           program.   Or the config file can specify ZFAX.COM as the command
  259.           and it will be executed directly.
  260.  
  261.  
  262.           The  Mail2Fax software must be run on  a BBS node equipped with a
  263.           Fax  modem (e.g. fax-only or  fax/data).  Normally  this means it
  264.           runs as Event  software. Thus you would send  faxes only at event
  265.           time, i.e. once or twice a day. or even every hour.
  266.  
  267.           It  is  possible to  run  the  program  as  part of  the  Pcboard
  268.           $$LOGOFF.BAT  procedure, but only on  those nodes equipped with a
  269.           fax card or modem.
  270.  
  271.  
  272.           When your fax  software does its job, it typically  returns a DOS
  273.           ERRORLEVEL code  to indicate  if it successfully  transmitted the
  274.           fax.  For Zyxel's ZFAX those codes are:
  275.                 0 - Fax sent successfully
  276.                34 - Called number was busy,
  277.                36 - No dial tone
  278.                37 - No answer (Ring No Aswer or RNA)
  279.                38 - Transmission failed
  280.  
  281.           Mail2Fax  will accept those four codes, or their equivalent 0, 1,
  282.           2, 3 or  4, and process accordingly.  If the fax was sent (0), or
  283.           could  not  be sent  (38),  the  fax  message  is killed  and  an
  284.           automatic reply message is generated.  If the fax was busy or did
  285.           not answer,  we retry a  number of  times.  The  exact number  of
  286.           times  depends on  the  number  of  times  the  fax  software  is
  287.           scheduled to  run, but we'll try  at least twice.   After that we
  288.           kill the message and create a reply to notify the sender.
  289.  
  290.           If there was  no dial tone, we immediately try  again to send the
  291.           same fax  (up to three times).  This retry  is in addition to any
  292.           retry the fax software  may have been set up to do.  For instance
  293.           we've configured our ZFAX software to  retry once.  Thus in  case
  294.           of no dial tone the software tries up to six times.
  295.  
  296.  
  297.           If your fax software does not support usable return codes, it  is
  298.           possible  to set  up a batch  file that  does.   We've included a
  299.           utility  (EC.COM)  that  can be  invoked  from  a  batch file  to
  300.           explicitly  set the  ERRORLEVEL.   See  file  SENDFAX.BAT for  an
  301.           example.
  302.  
  303.  
  304.      E.   Cover Page and Replies
  305.  
  306.           Ver 1.0                         5              September 26, 1993
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.                     Mail2Fax - Sending fax messages from your BBS.
  315.  
  316.  
  317.           Normally you  will want the fax  to go out with  a covering page.
  318.           Mail2Fax can  automatically generate a  cover page  based on  the
  319.           text you specify  in COVRPAGE.TXT.  If COVERPAGE.TXT  is missing,
  320.           no  cover page is generated.   When used, COVERPAGE.TXT typically
  321.           contains  a  FormFeed character  to ensure  the  cover page  is a
  322.           separate page, but it could be anything from a few lines to a few
  323.           pages (not recommended).
  324.  
  325.           A sample  of our own covering page is attached and is included as
  326.           COVRPAGE.TXT.
  327.  
  328.           Mail2Fax supports  PcBoard @variables.   Entries like  @FROM@ and
  329.           @DATE@   and @FAXNO@ get  replaced with the  appropriate value at
  330.           the time the  program generates the  text for the cover  page and
  331.           the fax itself.
  332.  
  333.           Mail2Fax is NOT a Door program.  It runs when no-one is signed on
  334.           at  that node,  so there  is no  current user.   That  means that
  335.           Mail2Fax can  handle only a  few of the @  variables that PcBoard
  336.           supports.   Only  those  applicable to  the  current message  are
  337.           supported.  We  do however,  provide several that  are unique  to
  338.           Mail2Fax:
  339.  
  340.                @ATTN@    - ATTENTN extended header in orig message
  341.                @BALANCE@ - Balance  ($) available for user  to send further
  342.           faxes    (*)
  343.                @CHARGE@  - The $ charge to the user for sending this fax   
  344.                 (*)
  345.                @DATE@    - Date original message posted
  346.                @FAXALIAS@     - If  fax number  was specified as  an alias,
  347.           this is it.  (empty otherwise)
  348.                @FAXID@   - To user name (as per FAXID and NETID)
  349.                @FAXNO@   -  Telephone number  that  message  was faxed  to.
  350.                          This is the real number, not the alias.
  351.                @FROM@    - Name of originator of message we faxed
  352.                @MSGAGE@  - How old was original message (In days) - FORWARD
  353.           mode 
  354.                @NOFAXES@ - Number  of faxes  user has sent,  including this
  355.           one.      (*)
  356.                            (available for Cover page & Replies)
  357.                @PAGES@   - No of pages in this current fax (excluding cover
  358.           page)
  359.                          Based on  68 lines  per  page, Formfeeds  ignored.
  360.                          (Available for Cover page & Replies)
  361.                @PRIVPUB@ - Is reply posted as Private or Public
  362.                @REFNO@   - Message no of original message
  363.                @REGNAME@ - Name in which Mail2Fax software is registered
  364.                @SERIAL@  - Serial number for this copy of Mail2Fax
  365.                @SUBJECT@ - Subject line of original message.
  366.  
  367.           Ver 1.0                         6              September 26, 1993
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.                     Mail2Fax - Sending fax messages from your BBS.
  376.  
  377.  
  378.                @STATUS@  -  Status of  Fax  BUSY/RNA etc.   (Available  for
  379.           replies only)
  380.                @SYSDATE@ -  System Date (when  fax is being  sent and reply
  381.           generated)
  382.                @SYSOPNAME@ - Sysop name as would be used on coversheet
  383.                @SYSTIME@      - Current system time
  384.                @VERSION@ - Version of M2F software
  385.                @TIME@    - Time original message was posted
  386.                @TO@      - Content of TO of original message
  387.  
  388.  
  389.           These @  variables must be specified in all upper case.  They may
  390.           be  used in the covering  page, the Fax itself and  in any of the
  391.           reply messages that  M2F can  generate (from the  text files  you
  392.           specify - see below).
  393.  
  394.           Translation of  SYSOP to your proper name (SYSOPNAME parameter in
  395.           CFG file), only takes  place for COVERPG.TXT, however @SYSOPNAME@
  396.           is available for use in  replies as well.  Thus if the FROM field
  397.           in the original message is SYSOP (i.e. a message you posted), use
  398.           of @FROM@  in the coversheet would  result in  Bill  Clinton  (if
  399.           happened  to  be  he).   In  the  reply message  @FROM@  would be
  400.           replaced by SYSOP.
  401.  
  402.           Use of @SYSOPNAME@  would result  in the name  specified via  the
  403.           SYSOPNAME  parameter  in the  config file,  or  in SYSOP  if that
  404.           parameter is not specified.
  405.  
  406.           (*)  BALANCE,  CHARGE and NOFAXES   are  available only with  the
  407.           FORWARD enabled version of the software.
  408.  
  409.  
  410.  
  411.      F.   Replies
  412.  
  413.           Mail2Fax generates replies from the following text files:
  414.  
  415.               REPLY.TXT  Text  for  reply  message to  send  user (preempts
  416.                          sending of any other reply, e.g.  FAXSENT, FAXFAIL
  417.                          or  FAXBADn) May  use same  @var@ as  COVRPAGE.TXT
  418.                          (This file, if present, is loaded every time a fax
  419.                          was sent (or failed) - for any ERRORLEVEL.)
  420.  
  421.               FAXSENT.TXT     Text  for  reply  message  if  Fax  was  sent
  422.                               successfully  and  a   reply  was   requested
  423.                               (ReqRR).  (ERRORLEVEL 0)
  424.                          May use same @var@ as COVRPAGE.TXT.
  425.  
  426.               FAXFAIL.TXT     Text for  reply message  if Fax  Software was
  427.  
  428.           Ver 1.0                         7              September 26, 1993
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.                     Mail2Fax - Sending fax messages from your BBS.
  437.  
  438.  
  439.                               unable  to send  fax and reported  that retry
  440.                               not possible (no fax, RNA)  (ERRORLEVEL 38)
  441.                          May use same @var@ as COVRPAGE.TXT
  442.  
  443.               FAXBAD1.TXT     Text  for  reply  message  if  the  telephone
  444.                               number  specified is  bad, i.e.  too few/many
  445.                               digits, bad NNX or blocked.
  446.                          May use same @var@ as COVRPAGE.TXT
  447.  
  448.               TOOMANY.TXT     Text for  reply message  if user posted  more
  449.                               faxes (new today) than the maximum.
  450.                          May use same @var@ as COVRPAGE.TXT
  451.  
  452.               FAXBUSY.TXT     Text for  reply message if a  busy signal was
  453.                               encountered repeatedly.  (ERRORLEVEL 34)
  454.                               May use same @var@ as COVRPAGE.TXT
  455.  
  456.               FAXRNA.TXT Text for  reply message  if a  Ring No  Answer was
  457.                          encountered  repeatedly.   This is essentially the
  458.                          same  as  FAXBUSY.    The difference  in  the  two
  459.                          messages  reflects the  results of  the last  call
  460.                          only (Busy vs RNA).  (ERRORLEVEL 35)
  461.                          May use same @var@ as COVRPAGE.TXT
  462.  
  463.  
  464.           If  REPLY.TXT is found on  disk, it will be used  as the text for
  465.           the reply to this message.  This is regardless of the return code
  466.           returned by the Fax software.  Unlike the other .TXT files, which
  467.           Mail2Fax loads only once,  when it first starts up,  REPLY.TXT is
  468.           always  loaded after  the fax  program returns  control.   (If it
  469.           exists at that time.)
  470.  
  471.           This  allows the Fax  program (or  whatever program  was actually
  472.           called)  to create  a  custom reply.    Killing of  the  original
  473.           message  is still  controlled by  the ERRORLEVEL that  the called
  474.           program returned to M2F.
  475.  
  476.  
  477.           Files   FAXSENT.TXT,  FAXFAIL.TXT, FAXBAD1.TXT,  FAXBUSY.TXT  and
  478.           FAXRNA.TXT are used as required, depending on the status returned
  479.           from  the Fax program.  Mail2Fax  loads these files when it first
  480.           starts up.  They cannot be changed dynamically.
  481.  
  482.           File  TOOMANY.TXT  is used when you have set a maximum number  of
  483.           faxes  per  user per  day.    For  all  fax messages  the  system
  484.           encounters beyond that  number, it will  generate this reply  and
  485.           not invoke  the Fax  software.   The  status of  the fax  message
  486.           remains  unchanged.  This check  only works when  the FAX FORWARD
  487.           option is installed.
  488.  
  489.           Ver 1.0                         8              September 26, 1993
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.                     Mail2Fax - Sending fax messages from your BBS.
  498.  
  499.  
  500.  
  501.           The reply  messages generated  have the following  message header
  502.           entries:
  503.               TO:        As per FROM: field of message that was to be faxed
  504.               FROM:      From the FAXID or NETID parameter that matched the
  505.                          TO: entry of the original message
  506.               SUBJECT:   Same as in original message, or as per SUBJ config
  507.                          option if specified.
  508.               Ref #      Message number of original message.
  509.  
  510.  
  511.      G.   Screening of fax numbers
  512.  
  513.           Since these faxes are sent through your telephone (fax) line, you
  514.           as  the  Sysop  are  responsible for  any  long-distance  charges
  515.           incurred.   You will  want to  keep some  level  of control  over
  516.           dialling out.
  517.  
  518.           The  checks  built  into Mail2Fax  apply  to  the North  American
  519.           telephone system.   Here,  with essentially no  exceptions, local
  520.           numbers are 7 digits, and never start with 0 or 1.  Long distance
  521.           calls always start with 0 or 1 and are 7 or 10 digits (plus the 0
  522.           or 1).
  523.  
  524.           Some  of  these  checks   are  also  done  in  the   FAX  command
  525.           (SENDFAX.PPE), however since it is possible to enter a message to
  526.           be  faxed  via  the  regular  PcBoard  Editor,  the  controls  in
  527.           SENDFAX.PPE are not sufficient.
  528.  
  529.           The  easiest is  to limit  telephone numbers  to 7  digits (local
  530.           calls only).  For telephone number validation, embedded '(', ')',
  531.           '-' and  ' ' characters are  removed.  Mail2Fax  also checks that
  532.           the first digit of a seven digit number is not 0 or 1.
  533.  
  534.           In long distance mode  (specified with the LDOK parameter  in the
  535.           config file), Mail2Fax  will also  accept 10 digit  numbers.   In
  536.           this mode, the 7  or 10 digit number may be preceded by the digit
  537.           0 or 1.
  538.  
  539.  
  540.           The  next  step  is to  validate  against  a  list of  acceptable
  541.           telephone number ranges and a list of  excluded telephone numbers
  542.           (or  ranges  of  numbers).     These  are  kept  in   two  files:
  543.           LOCALNNX.TXT and BLOCKTN.TXT.
  544.  
  545.               LOCALNNX.TXT    has  a list of 3 or 6  digit NNX or NPA + NNX
  546.                               numbers   that   represent   valid   dialling
  547.                               prefixes.    Each  3  or 6  digit  number  is
  548.                               preceded  by  a  blank.   A  3  digit  number
  549.  
  550.           Ver 1.0                         9              September 26, 1993
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.                     Mail2Fax - Sending fax messages from your BBS.
  559.  
  560.  
  561.                               represents an NNX (the first 3  digits of a 7
  562.                               digit number).   A 6 digit number  represents
  563.                               an  NPA +  NNX (the  first 6  digits of  a 10
  564.                               digit number).   No  leading 0  or 1 in  this
  565.                               file.
  566.  
  567.  
  568.               BLOCKTN.TXT     contains a list of telephone numbers that are
  569.                               blocked.   Numbers typically  are in 7  or 10
  570.                               digit  form (e.g. 4165883821) and each number
  571.                               is preceded by a blank.  Numbers that are not
  572.                               exactly seven  or ten  digits are  allowed in
  573.                               the  file,  but   are  interpreted   somewhat
  574.                               differently.    These  partial   numbers  are
  575.                               matched against the left-most numbers  in the
  576.                               telephone numbers.   Thus 416976 would  block
  577.                               all ten-digit numbers starting with (416) 976
  578.                               (pay per call porn numbers here in Canada)
  579.  
  580.  
  581.               FAXALIAS.TXT    contains a list of commonly used fax numbers,
  582.                               with for  each number an alias  name that may
  583.                               be  used  instead.    Alias numbers  are  not
  584.                               checked   further.    (against   BLOCKTN   or
  585.                               LOCALNNX).
  586.                          If it's in the Alias file, users can fax to it.
  587.                          Entries  in  this  file  occur  in  pairs,   Alias
  588.                          followed by fax number.
  589.  
  590.                          Each  Alias and fax number are separated by one or
  591.                          more  blanks.   Aliases  are also  preceded by  at
  592.                          least one  blank.  Embedded blanks  are allowed in
  593.                          the Alias but not in the fax number.
  594.  
  595.                          Note that  the length of  the alias is  limited by
  596.                          the  25 character    TO:   field  size.   If  your
  597.                          FAXID/NETID  (see  Config file)  is FAX  MAIL, the
  598.                          alias  is limited  to 14  characters, (e.g.  TO: =
  599.                          "FAX MAIL @ 12345678901234").  The  greater length
  600.                          of your NETID and FAXID is what counts.
  601.  
  602.                          This  file is  used  in both  Mail2Fax.Exe and  in
  603.                          SendFax.Ppe.    The  file  must  be  in  the  same
  604.                          directory as  SendFax.Ppe, or SendFax.Pps  must be
  605.                          changed and recompiled.
  606.  
  607.  
  608.           If the TO: field specifies a fax  number alias, e.g.  "FAX MAIL @
  609.           WARD",   it  is  looked  up  in  FAXALIAS.TXT.    If  found,  the
  610.  
  611.           Ver 1.0                         10             September 26, 1993
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.                     Mail2Fax - Sending fax messages from your BBS.
  620.  
  621.  
  622.           corresponding fax number is used.
  623.  
  624.           Fax aliases  are supported through both  MAIL2FAX.EXE and through
  625.           the FAX command (SENDFAX.PPE).  The latter accepts the alias, and
  626.           validates it, but is the alias  that gets stored in the  message.
  627.           Thus  Mail2Fax.EXE will  also look  it up  and translate  it.   A
  628.           number that was entered as an alias is not further validated.
  629.  
  630.           If a  match is  not found between  a fax number  and an  entry in
  631.           LOCALNNX.TXT, the number is rejected and the fax is not sent.
  632.  
  633.           On the other hand, if a match IS found between the fax number and
  634.           an entry in BLOCKTN.TXT, the number is rejected as well.  One use
  635.           of this file is to deal with complaints about unwanted faxes.  If
  636.           someone complains about faxes from your users, just put their fax
  637.           number in the BLOCKTN.TXT file.
  638.  
  639.           Note that in all  three these files every entry must  be preceded
  640.           by a space  (at least one).  Even the first  entry in the file is
  641.           preceded by a blank.  Fax numbers in LOCALNNX.TXT and BLOCKTN.TXT
  642.           must  not   be  formatted  (i.e.  2345678901   rather  than  (234
  643.           567-8901).  Those in FAXALIAS.TXT may be.
  644.  
  645.           Entries  in the  alias file  are limited  to an  alias and  a fax
  646.           number together on a line.   In the other two files there  may be
  647.           multiple codes per line.
  648.  
  649.           Messages from SYSOP may be sent to any fax number.  The number is
  650.           not validated in any way.
  651.  
  652.  
  653.      H.   FAX Command
  654.  
  655.           To make it simpler for your  users to enter faxes, we've included
  656.           a brand new PcBoard command:  FAX.
  657.  
  658.           With version 15, PcBoard  allows you to easily add  new commands.
  659.           Clark  Development has  even  created  PPL  (PcBoard  Programming
  660.           Language),  a method for creating such a command, without writing
  661.           complex "Door" software.
  662.  
  663.           The FAX command  is implemented as a PPL  script:  SENDFAX.PPE is
  664.           the  compiled and  executable version.   SENDFAX.PPS,  the source
  665.           code, is included, so you can change the complete user interface.
  666.           You  will,  however,  need  a copy  of  Clark  Development's  PPL
  667.           compiler (PPLC.EXE)  to  recreate SENDFAX.PPE  after you  changed
  668.           SENDFAX.PPS.
  669.  
  670.           In essence, the FAX command is  simply a fancy front-end for  the
  671.  
  672.           Ver 1.0                         11             September 26, 1993
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.                     Mail2Fax - Sending fax messages from your BBS.
  681.  
  682.  
  683.           PcBoard editor, which  is still  required to allow  your user  to
  684.           enter the text for his/her fax.
  685.  
  686.           What FAX does is  to remove the hassle of  remembering the format
  687.           required for the TO: field or for the ATTN file at the top of the
  688.           message.
  689.  
  690.           The things the FAX command does are:
  691.                » Confirm that the user does want to prepare/send a fax
  692.                »  Explain  what FAX  does and  its limitations  (e.g. local
  693.                calls only)
  694.                » Ask for fax number and validate it (this is only a limited
  695.                validation, but is done right at time the fax is entered, as
  696.                opposed  sending a  reply message  the next  day   "your fax
  697.                number was no good  and we deleted your message  .... have a
  698.                nice day"
  699.                » Ask for the "Attention" name.
  700.                » Switch to the FAX conference.
  701.                » Invoke the editor  by stuffing the keyboard buffer.   This
  702.                creates the  message header and  Attntn line  in the  proper
  703.                format.
  704.  
  705.           From therein, the  user is in editor mode and  can type or upload
  706.           the  text for the fax.  The  user can save the message or abandon
  707.           it, just  as for any other  message.  Only messages  saved in the
  708.           FAX  conference (and with a properly formatted TO: field) will be
  709.           faxed.
  710.  
  711.           The maximum length for a fax  is the same as for any message  (as
  712.           set in the PcBoard configuration program).
  713.  
  714.           The  FAX command is installed in CMD.LST (PcbSetup) and must have
  715.           3 parameters,  the number for the conference for fax mail, a Y or
  716.           N to indicate  in long distance is allowed and a Y or N to signal
  717.           if this is an Echo Conference.  See installation instructions.
  718.  
  719.  
  720.      I.   FORWARD Command
  721.  
  722.           A more advanced option is Fax Forward.  (Fax Forward is available
  723.           only as an option in the registered version of this software.)
  724.  
  725.           When  this option is activated,  your users can  specify that any
  726.           messages sent  to them should be automatically forwarded via fax,
  727.           if the user does not  call in to read his/her mail (online or via
  728.           a mail door).
  729.  
  730.           Like the FAX command, FORWARD is a new PcBoard command and it too
  731.           is implemented as a PPE file.
  732.  
  733.           Ver 1.0                         12             September 26, 1993
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.                     Mail2Fax - Sending fax messages from your BBS.
  742.  
  743.  
  744.           FORWARD simply records  that the  user selected  the service  and
  745.           allows him/her to set the number of days.  The user  can even set
  746.           the  maximum  number  of  faxes  to  be  sent.    For  every  fax
  747.           successfully  sent (both via the FAX command and as the result of
  748.           the  FORWARD  command), we  reduce this  count.   Once  the count
  749.           reaches zero, no further faxes are sent for that user.
  750.  
  751.  
  752.           Note that with this  option the software uses the  COMMENT2 field
  753.           in the user record.  The reason is that PPL scripts cannot access
  754.           TPA  areas in  the USERS.INF  file.   (That would  have  been the
  755.           preferred solution.)
  756.  
  757.           What this means is that if the COMMENT2 field is currently in use
  758.           on your  system, you will not be  able to use this  PPL script as
  759.           is.  In that case, you may want to let us know when you register,
  760.           and we can send you a TPA version of Mail2Fax.Exe
  761.  
  762.           You  can also specify via a configuration option that Mail2Fax is
  763.           not use any fields in USER.INF  (NOUSERINF).
  764.  
  765.  
  766.      J.   Netmail Fax Messages
  767.  
  768.           So far we've talked about the messages to be faxed  being entered
  769.           on  line by callers  to your  own BBS.   Your users  can create a
  770.           message  online, using  the FAX  command.   They can also  use an
  771.           off-line  mail  reader  and your  mail  door.    That is  because
  772.           ultimately the fax message is an ordinary message.
  773.  
  774.           Most  mail readers will not  support our ATTENTN extended header.
  775.           This can be accommodated by typing on the first line:
  776.                @ATTENTN:< attention >
  777.           MAIL2FAX accepts this  pseudo extended header  format.  The  only
  778.           requirements are that @ATTENTN:  is spelled exactly as shown  and
  779.           starts  in  the first  byte  of the  message  (past any  real Pcb
  780.           extended  headers.  The other requirement is that the < attention
  781.           > text  may be at most 60 bytes long.   If MAIL2FAX does not find
  782.           an end of line by byte 61, it treats  the ATTENTN line as part of
  783.           the message text.
  784.  
  785.           MAIL2FAX  supports both a FAXID (typically defined as FAX MAIL on
  786.           any system  using M2F) and a  NETID. NETID is normally  set up as
  787.           <BBS ID> FAX, for instance JOB SEARCH FAX.
  788.  
  789.           You  can network this service  with other BBS's  that are outside
  790.           your local calling  area.  This  way you can offer  long distance
  791.           faxing  without  paying for  each fax  as  a long  distance call.
  792.           Instead, you  zip the  message up and  move it with  your regular
  793.  
  794.           Ver 1.0                         13             September 26, 1993
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.                     Mail2Fax - Sending fax messages from your BBS.
  803.  
  804.  
  805.           mail to a system that is local  to that calling area, and have it
  806.           fax  the message.  So  instead of  paying  for several  1  minute
  807.           (minimum call duration) LD  calls, the zipped messages add  a few
  808.           seconds to your mail call.
  809.  
  810.           Each of the  systems jointly offering this service must  set up a
  811.           Fax Mail conference and  echo that conference.  Each  system gets
  812.           assigned a  network fax ID   (e.g. "JOB  SEARCH FAX"   "HYPER BBS
  813.           FAX"  etc.)  These  ID's should all  be disabled as  user ID's on
  814.           everyone of the participating systems.
  815.  
  816.           The FAX command can be  made to prompt for  the ID of the  system
  817.           that  is to fax  this message  (this is  not implemented  in this
  818.           version  of SENDFAX.PPS,  but  is provided  for  ("the hooks  are
  819.           there"), and is left as an exercise for the reader.
  820.  
  821.  
  822.      K.   Replies to Automated Messages
  823.  
  824.           In  addition to FAXID  and NETID, which  give TO: user  ID's, M2F
  825.           also supports one special FROM: user ID.  This ID is specified as
  826.           NOREPLYID.    The   purpose  of  NOREPLYID  is  to  suppress  the
  827.           generation of the reply messages.
  828.  
  829.           On  our BBS  we have this  set to  NOREPLYID QUERY  ENGINE. QUERY
  830.           ENGINE  is our  database  search facility  that  matches new  job
  831.           listings  with standing queries.  When a user's query is matched,
  832.           we fax  or message that user a  copy of that job  listing.  QUERY
  833.           ENGINE has no  use for any replies,  so NOREPLYID can turn  those
  834.           off.
  835.  
  836.           As an alternative to NOQUERYID, you can also just use the default
  837.           option  in M2F,  which says  that no  reply is  generated, UNLESS
  838.           there is a problem.  (The same information is also available from
  839.           the log file.)
  840.  
  841.  
  842.      L.   Fax Busy or No Answer
  843.  
  844.           The fax software may encounter a Busy condition (ERRORLEVEL 34 in
  845.           Zyxel's Zfax) or a Ring No Answer( 37).  In those  cases we retry
  846.           many times (if required):
  847.                1. as set up in  the Fax software (our's is set  to 2 tries,
  848.                no pause)
  849.                2. every time the fax  software runs on the day the  fax was
  850.                posted (at two tries each)
  851.                3. every time the fax software runs before 9AM (any day)
  852.                4. twice more (two tries each) when run at any other time.
  853.  
  854.  
  855.           Ver 1.0                         14             September 26, 1993
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.                     Mail2Fax - Sending fax messages from your BBS.
  864.  
  865.  
  866.           Thus  for a  fax  posted in  the morning  with  an hourly  faxing
  867.           schedule, we may retry from 10-20 times.
  868.  
  869.           MAIL2FAX  uses the Message Read flag to control retries.  As long
  870.           as the  current system date is  the same as the  message date, or
  871.           the time  before 09:00 we keep  retrying.  When the  date differs
  872.           (regardless  if before or after), and we encounter a Busy/RNA, we
  873.           set the  Message Read flag.   When we encounter  a Busy/RNA again
  874.           and the Message Read flag  was already set, we regard the  fax as
  875.           non-deliverable, notify its originator (FAXBUSY.TXT or FAXRNA.TXT
  876.           message) and deleted the fax message.
  877.  
  878.           It  is desirable to  set up a  faxing schedule  that has frequent
  879.           events during working  hours, but only  a few over  night.   That
  880.           improves  chances that  an  out-of paper  situation is  rectified
  881.           before we used up all retries.
  882.  
  883.  
  884.      M.   No Dial Tone Errors
  885.  
  886.           In a typical configuration, you  have a Fax/Data modem on  one of
  887.           your  BBS's lines, that is  used to receive  incoming data calls.
  888.           Now you will be using that same line to place outgoing calls.  If
  889.           you fax with  some frequency,  sooner or later  you'll have  call
  890.           collision between an incoming call and an outgoing one.  It won't
  891.           happen often (unless the line is very busy), but it will.
  892.  
  893.           If your fax software is reasonably  smart, it will report this as
  894.           something like "NO DIALTONE"  (ERRORLEVEL 36 in Zyxel's ZFAX).
  895.  
  896.           What the  Fax software does is  hang up on the  other party (it's
  897.           all it  can do).  In  this case MAIL2FAX will  immediately try to
  898.           send  the fax again.   Since the  other caller likely  also has a
  899.           modem and repeat-dialing software, it essentially becomes a race.
  900.  
  901.           In  this scenario  it is  advantageous to  be using  a touch-tone
  902.           line.   It  also  is advantageous  to  be connected  to  a modern
  903.           (digital) telephone Central Office.
  904.  
  905.           If it still  remains a problem,  there are a  few things you  can
  906.           try:
  907.                1. Get a dedicated fax line
  908.                2. Run fax events only during quiet periods
  909.                3.  Reduce the maximum time available to users calling in on
  910.                that line  (PWRD file).  This solves the problem as a lot of
  911.                the slower users (the  non-mail reader crowd) will  not call
  912.                in on that line any more.
  913.                4. Ask  your  callers  to  set  their  time  between  redial
  914.           attempts to at least 5-10 seconds.
  915.  
  916.           Ver 1.0                         15             September 26, 1993
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.                     Mail2Fax - Sending fax messages from your BBS.
  925.  
  926.  
  927.           If  there was no dial tone, we  immediately try again to send the
  928.           same fax (up to three  times).  If we get the No  Dial Tone error
  929.           three times in a row, we terminate all fax processing.  The event
  930.           gets displayed on screen and gets logged to the log file, but the
  931.           fax involved is not changed, nor do we generate a reply.
  932.  
  933.  
  934.      N.   MAIL2FAX Error levels
  935.  
  936.           M2F exits  with one of the following error codes, for the reasons
  937.           given:
  938.  
  939.                 0 - Ok
  940.                 1 - Out of memory
  941.                 2 - Open failed on FaxFile
  942.                 3  -  Failure  running  fax  software  (unknown  errorlevel
  943.           received)
  944.                 4 - No dial tone on repeated attempts
  945.                 5 - Invalid keyword in config file
  946.                16 - Date wrong on system clock
  947.                17 - Demo or Beta key expired
  948.                18 - Keyfile is invalid
  949.  
  950.           All  non-zero codes mean the  program may not  have processed all
  951.           fax messages (if any).  For more detail, see the section on error
  952.           messages.
  953.  
  954.  
  955.      O.   Config file
  956.  
  957.           Mail2Fax.Exe  takes  a  few  command line  parameters,  but  most
  958.           options are controlled through a config file.
  959.  
  960.           The command line parameters are:
  961.  
  962.           MAIL2FAX  <config>  <message base>  <faxfile>  [<debug level>]
  963.  
  964.                <config>       - path and name of the configuration file
  965.                <message base> - path and name of message base to scan
  966.                <faxfile>      - path  and name of intermediate  file passed
  967.           to fax software.
  968.                <debug level>  - 1 - 5  to activate diagnostic mode
  969.  
  970.  
  971.           A sample  of the config file is listed in the attachments.  Lines
  972.           starting  with   //   and blank  lines are  ignored.   Each entry
  973.           consists of a keyword, which may  be followed by a value (such as
  974.           a file name), which must be on the same line, e.g.:
  975.  
  976.  
  977.           Ver 1.0                         16             September 26, 1993
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.                     Mail2Fax - Sending fax messages from your BBS.
  986.  
  987.  
  988.               PUBL
  989.               PRIV
  990.               LOGFILE   C:\PCBLOG\CALLER%PCBNODE%
  991.  
  992.           The order of the keyword entries is insignificant, except that if
  993.           the END keyword  is used it must be  last in the file (it  is not
  994.           required).  Keywords must  be spelled exactly as shown,  but case
  995.           is not significant
  996.  
  997.           You  can  use  environment  variables  in   the  config  file  by
  998.           bracketing  it  with two  % signs.    For instance  on multi-node
  999.           PcBoards  PCBNODE= is  commonly used to identify the  Node number
  1000.           (see  above  example).   %Variables may  be  used in  a keyworded
  1001.           entry, but not within the keyword itself.
  1002.  
  1003.           BLOCKTN   // File with blocked telephone numbers
  1004.           COVERPAGE // File containing cover page
  1005.           DEBUG     // Turns on some debugging support within Mail2Fax
  1006.                     // See the separate document on Troubleshooting
  1007.           END       // Must be last keyword (if used)
  1008.           FAXALIAS  // File with aliases and fax numbers
  1009.           FAXBAD1   // File containing text for bad fax no/alias
  1010.           FAXBUSY   // File containing text for fax line busy
  1011.           FAXCMD    // Command to invoke Fax software
  1012.           FAXFAIL   // File containing text if fax xmit failed
  1013.           FAXID          // TO: entry for locally posted fax messages
  1014.           FAXSENT   // File containing text if fax was transmitted
  1015.           LDOK      // Flag to signal long distance calls ok
  1016.           LOGFILE   // Log file to use
  1017.           LOGLINES  // Display separator lines in caller log (LOGFILE)
  1018.           MAXFAX    // Maximum no of new faxes per user per day
  1019.           NETID          // For messages (to be faxed) that were
  1020.           NOREPLYID //  If  this  is  the FROM:  user,  don't  generate any
  1021.           replies
  1022.           NOUSERINF // Do not access any fields in USERS.INF
  1023.           OKNNX     // File with NNX that are allowed
  1024.           PRIV      // Make Reply messages private
  1025.           PUBL      // Make Reply messages public
  1026.           REPLY          // File containing text for special reply
  1027.           SUBJ      // Subject line for reply, NO // ALLOWED
  1028.                     //  If omitted  reply  uses original  message's subject
  1029.           line
  1030.           SYSOPNAME // Sysop's proper name to use for faxes from SYSOP
  1031.           TOOMANY   // File containing text for Max fax
  1032.  
  1033.  
  1034.      P.   Testing of Fax
  1035.  
  1036.           Before you install  Mail2Fax, you should  first verify that  your
  1037.  
  1038.           Ver 1.0                         17             September 26, 1993
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.                     Mail2Fax - Sending fax messages from your BBS.
  1047.  
  1048.  
  1049.           fax  card/modem  is  properly  installed,  and that  it  and  its
  1050.           software function  as expected.   In particular,  create a  small
  1051.           text  file,  and fax  it  to a  fax machine  so  you can  see the
  1052.           results.   Use command-line mode.  Doing this test first may save
  1053.           you a lot of hardship debugging your Mail2Fax installation.
  1054.  
  1055.           If you are using a fax/data modem to receive data  calls (for the
  1056.           BBS),  you should verify that your  fax software does not mess up
  1057.           the modem initialization in a way the PcBoard cannot deal with.
  1058.  
  1059.           This test  too is simple.   Use your fax  software to send  a fax
  1060.           (from the command  line).  If after that your  BBS still receives
  1061.           calls ok, you're in business.
  1062.  
  1063.  
  1064.      Q.   How to install Mail2Fax
  1065.  
  1066.           We're  assuming that  you  are a  reasonably experienced  PcBoard
  1067.           Sysop and that you've  added conferences, installed doors  or PPE
  1068.           files before.  We also assume  that you know your way around DOS,
  1069.           Batch files and creating directories.
  1070.  
  1071.           If you  are new to  operating PcBoard, you  may want to  get some
  1072.           help.  Mail2Fax is not  that difficult to install, but for  a new
  1073.           Sysop, it may be somewhat daunting.
  1074.  
  1075.           It's recommended that you dedicate  a Conference to faxes entered
  1076.           with  the FAX  command.  Do  not try  to install  the FAX FORWARD
  1077.           option yet (if  you've received  it).   Get the  FAX MAIL  option
  1078.           working first.
  1079.  
  1080.           For our sample installation, we're assuming the following:
  1081.                » Fax Mail mode only (no Fax Forward )
  1082.                » Conference 99 -  FAXMAIL contains all messages to  fax and
  1083.           reply.
  1084.                  (the number for this conference is set in CMD.LST)
  1085.                »  Only users  level 50 and  up can  use the  FAX command or
  1086.           access conf 99
  1087.                » All Mail2Fax software as well as your modem's fax software
  1088.           are placed in
  1089.                  directory \ZFAX
  1090.                »  your  fax  program  is   called  ZFAX  and  takes   three
  1091.           parameters, a 1, a file
  1092.                  name and a telephone number.
  1093.  
  1094.  
  1095.           MD \ZFAX
  1096.                Create a directory  to hold all Mail2Fax files  and software
  1097.                as  well as your fax software.   Copy in all files from this
  1098.  
  1099.           Ver 1.0                         18             September 26, 1993
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.                     Mail2Fax - Sending fax messages from your BBS.
  1108.  
  1109.  
  1110.                diskette,  as well  as your  fax software  and the  files it
  1111.                requires.  If you change this name, change  the path in your
  1112.                Event batch software.
  1113.  
  1114.                If  you have  a  dedicated directory  for  PPE files,  place
  1115.                SENDFAX.PPE and FORWARD.PPE there.
  1116.  
  1117.                The files  FAX and  FORWARD are  help  files explaining  the
  1118.                corresponding command.   Copy these  two files to  your help
  1119.                file subdirectory (normally C:\PCB\HLP).
  1120.  
  1121.                FaxAlias.Txt must  go in  the same directory  as SendFax.Ppe
  1122.                (see below).
  1123.  
  1124.  
  1125.           EVENT
  1126.                Set up one or more event files to invoke Mail2Fax.EXE.  Ours
  1127.                reads
  1128.                     CD \ZFAX
  1129.                     MAIL2FAX  MAIL2FAX C:\PCB\MAIN\MSGS99  FAXFILE
  1130.  
  1131.                Set up your  event times  to run the  software (say every  2
  1132.                hours during the day), and twice during the night.
  1133.  
  1134.  
  1135.           Callerlog
  1136.                Specify  where you  want Mail2Fax  to log  all the  faxes it
  1137.                sent.
  1138.                We use CALLER1, CALLER2 etc for various  nodes.  All our log
  1139.                files are in C:\PCBLOG (for all nodes).
  1140.  
  1141.                LOGFILE  C:\PCBLOG\CALLER%PCBNODE%
  1142.  
  1143.  
  1144.           FAX command
  1145.                Using PcbSetup, select B, File locations/Configuration files
  1146.                From  the list of files, pick the one for CMD.LST and assign
  1147.                it a file name, e.g.   C:\PCB\GEN\CMD.LST  Then press F2  to
  1148.                edit (or create) this file.
  1149.                In the file add as command:  FAX , security level 50, and as
  1150.                file C:\ZFAX\SENDFAX.PPE 99 N  N.  Note that the  PPE suffix
  1151.                must  be  specified.    (If  you  placed  SENDFAX.PPE  in  a
  1152.                different  directory, adjust accordingly.  Move FaxAlias.Txt
  1153.                to that same directory.)
  1154.  
  1155.                You will have  to specify  the security level  for users  to
  1156.                have access to this command.  In our example, that  is level
  1157.                50.  Do not set  the security level here any lower  than the
  1158.                security needed to access the FAXMAIL conference.  Otherwise
  1159.  
  1160.           Ver 1.0                         19             September 26, 1993
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.                     Mail2Fax - Sending fax messages from your BBS.
  1169.  
  1170.  
  1171.                when the FAX command tries to issue a  JOIN , that will fail
  1172.                and the message will  end up in the wrong  conference, where
  1173.                MAIL2FAX will never look for it.
  1174.  
  1175.                Note the "99 N N" as in ...\SENDFAX.PPE 99 N N.  Here  99 is
  1176.                our Faxmail  conference.  The first  N   signals  that  long
  1177.                distance calls are not  allowed.  The second N  signals that
  1178.                the fax conference is set up as non-echo.
  1179.  
  1180.  
  1181.           FAXMAIL conf
  1182.                Set up a  new conference using PCBSETUP.  In  our example it
  1183.                is # 99, and is  called FAXMAIL.  The conference number  may
  1184.                be  anything  you want,  but it  must  match the  number you
  1185.                specified in CMD.LST following SENDFAX.PPE.
  1186.  
  1187.                Set  the conference as non-echo  if you do  not want netmail
  1188.                faxes, and echo if  you want non local faxes  echoed between
  1189.                systems. (See the section on Netmail Fax Messages.)
  1190.  
  1191.                Set the  security level  to  50, the  same  as for  the  FAX
  1192.                command.  Lower  is acceptable  to, but does  not make  much
  1193.                sense.
  1194.  
  1195.  
  1196.           ID's Since you are using FAX MAIL as a sort of user id, make sure
  1197.                no-one can  log on with that ID.  Using the PCB user editor,
  1198.                simply create a new  record with this ID and  security level
  1199.                zero.  It wont affect the operation of Mail2Fax, but it will
  1200.                stop users from signing on under that ID.
  1201.  
  1202.  
  1203.           Bulletin  Create a Bulletin or  News file for your users  to tell
  1204.                     them  about the new service.   A sample  is included as
  1205.                     FAX.BLT  (for the FAX command only).
  1206.  
  1207.           Help files
  1208.                Copy  the  files  "FAX"  and  "FORWARD"  to  your  PCB  Help
  1209.                directory, typically C:\PCB\HELP.
  1210.  
  1211.                These files are what your user will see if they type in HELP
  1212.                FAX  or HELP FORWARD.
  1213.  
  1214.  
  1215.           How to use it
  1216.                Once the installation is  complete, using M2F is easy.   Use
  1217.                the FAX command to enter a fax/message, and that's it.   The
  1218.                rest  is automatic.  You  do want to  review your CALLER log
  1219.                from  time to  time to  check  usage and  to  check for  any
  1220.  
  1221.           Ver 1.0                         20             September 26, 1993
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.                     Mail2Fax - Sending fax messages from your BBS.
  1230.  
  1231.  
  1232.                problems.
  1233.  
  1234.  
  1235.           That's  it for a basic installation.   You may want to review the
  1236.           Reply  Text files  that  are provided  as  part of  the  package.
  1237.           You'll also want to adapt the files LOCALNNX.TXT and FAXALIAS.TXT
  1238.           (or not use them at all.)
  1239.  
  1240.           Note that we distribute MAIL2FAX.CFG  with the DEBUG parameter in
  1241.           place.   This is a diagnostic  tool, geared to  checking out your
  1242.           configuration.   Leave it in place for  the first few runs, until
  1243.           you are  satisfied with the results.   The only downside  is more
  1244.           messages in the log, and (for DEBUG 5), a 10 second delay on exit
  1245.           from the program - to allow you time to read the screen.
  1246.  
  1247.           See  the  Troubleshooting   document  (TROUBLE.DOC)    for   more
  1248.           information on the DEBUG option and on what to do if things don't
  1249.           work as expected.
  1250.  
  1251.  
  1252.      R.   Known Limitations
  1253.  
  1254.           In the non-registered copy:
  1255.               - only the first three lines of a fax are sent.
  1256.               - FAX FORWARD is not available
  1257.               - Maximum faxes per day is not enforced.
  1258.  
  1259.           If LOGLINES is used, configuration errors are still logged before
  1260.           the first line of ******************
  1261.  
  1262.           Mail2Fax skips all extended headers except @ATTENTN:.
  1263.  
  1264.           In  SENDFAX.PPE, we create an ATTENTN line that almost looks like
  1265.           an  PcBoard extended header, but  isn't.  The  current version of
  1266.           PPL  may not allow  us to fully create  an extended header entry.
  1267.           M2F accepts  this extended  header even if  improperly formatted.
  1268.           We use this  to accept  @ATTENTN lines from  messages posted  via
  1269.           mail readers.
  1270.  
  1271.  
  1272.      S.   Copyright
  1273.  
  1274.           The files in this package are copyright, 1993, Master  Programmer
  1275.           Group.
  1276.  
  1277.           PcBoard,  Zyxel,  USR  and   BLASTFAX  are  trademarks  of  their
  1278.           respective owners.
  1279.  
  1280.           You are  allowed to  freely distribute  copies of this  software,
  1281.  
  1282.           Ver 1.0                         21             September 26, 1993
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.                     Mail2Fax - Sending fax messages from your BBS.
  1291.  
  1292.  
  1293.           provided all  files in the ZIP  file remain included and  are not
  1294.           changed in any way.
  1295.  
  1296.           To  use the  software, you  will have  to register,  as specified
  1297.           below.
  1298.  
  1299.  
  1300.      T.   Registration
  1301.  
  1302.           Mail2Fax  is distributed as shareware.   That means  that you may
  1303.           install it on your system for  a period of 30 days for evaluation
  1304.           purposes.  This will allow  you to use the real software  in your
  1305.           own  environment to verify that it is compatible with your system
  1306.           and works the way you think it should.
  1307.  
  1308.           If  after this  period you  decide  to keep  using  it, you  must
  1309.           register.  Registration for this software is:
  1310.                 $30.- not including Fax Forward.
  1311.                 $45.- including Fax Forward option   (not available at this
  1312.           point)
  1313.                 $ 5.- for a full functionality, 30 day demo key.
  1314.  
  1315.           Prices  are  in US  dollars, but  Canadian  residents may  pay in
  1316.           Canadian currency, at par - but will have to pay GST/PST.
  1317.  
  1318.           To give you a further incentive for registering, in the shareware
  1319.           version we have disabled some functions. Specifically:
  1320.                » only the first three lines of a fax will actually be sent.
  1321.  
  1322.           Upon  registering you will receive a  key file to unlock the full
  1323.           functionality  of Mail2Fax (key file  MAIL2FAX.KEY).  You may not
  1324.           distribute copies of this key file.
  1325.  
  1326.           Also  available is a Registered  Demo key, that  unlocks the full
  1327.           functionality  of the system (except Fax Forward), but only for a
  1328.           period of 30 days.
  1329.  
  1330.           You will also receive the latest version of the program/files, if
  1331.           changed.
  1332.  
  1333.           To register,  fill out the  enclosed registration slip  (see file
  1334.           REGISTER.FRM).  If  you are paying by Master  card, you will also
  1335.           be able  to register  online  via our  Software Support  Bulletin
  1336.           Board  (416 588-9690).   You will be able to immediately download
  1337.           your key file.
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.           Ver 1.0                         22             September 26, 1993
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1352.  
  1353.      U.   Error messages
  1354.  
  1355.           M2F returns one  of the  following error codes,  for the  reasons
  1356.           given:
  1357.  
  1358.                0 - Ok
  1359.                     Program  ran successfully  and  no serious  errors were
  1360.                     encountered.  (Fax busy or no answer, is not considered
  1361.                     a serious error.)  See log file for details.
  1362.  
  1363.  
  1364.                1 - Out of memory
  1365.                     At  start-up time  the program  could not  allocate the
  1366.                     memory it  required.   It requires  32K + the  combined
  1367.                     size of all .TXT files it uses.  It should run properly
  1368.                     in 120-200K in total.
  1369.  
  1370.  
  1371.                2 - Open failed on FaxFile
  1372.                     The  system  reported  an   error  when  M2F  tried  to
  1373.                     open/create the text file  that is to hold the  text to
  1374.                     be faxed.
  1375.  
  1376.  
  1377.                3  -   Failure  running  fax  software  (unknown  errorlevel
  1378.           received)
  1379.                     The Fax  software that is  specified via the  FAXCMD in
  1380.                     the config file (by default SENDFAX.BAT) either was not
  1381.                     found (in  current directory on DOS  path), or returned
  1382.                     an  unknown ERRORLEVEL.  See the Log file for the error
  1383.                     code returned.
  1384.  
  1385.  
  1386.                4 - No dial tone on repeated attempts
  1387.                     The modem reported NO DIALTONE on repeated (3) attempts
  1388.                     to place  an outgoing  call.   This  either means  that
  1389.                     there were incoming calls (in particular on a line that
  1390.                     is  also used  to receive  many calls -  such as  a BBS
  1391.                     line), or the telephone  line was not plugged in.   Not
  1392.                     all modems are capable of reporting this condition.
  1393.  
  1394.  
  1395.                5 - Invalid keyword in config file
  1396.                     The first word on the line from the config file that is
  1397.                     shown with  this message is  not recognised as  a valid
  1398.                     keyword (see  section Config File above).   Blank lines
  1399.                     and lines starting with // (comment lines) are skipped.
  1400.                     All other lines must start with a valid keyword.
  1401.  
  1402.  
  1403.  
  1404.           Ver 1.0                         1              September 26, 1993
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1413.  
  1414.                16 - Date wrong on system clock
  1415.                     The date of your  system's clock is before the  date of
  1416.                     the   key   file  you   are   using   (MAIL2FAX.KEY  or
  1417.                     MAIL2FAX.BTA).   The battery in your  computer may need
  1418.                     replacing.
  1419.  
  1420.  
  1421.                17 - Key file expired
  1422.                     The program  is running with  a 30 day  Registered Demo
  1423.                     key  (MAIL2FAX.DMO),   or  with  a  45   day  Beta  key
  1424.                     (MAIL2FAX.BTA).  That key  is now more than  60/90 days
  1425.                     old.  The program will no longer run with this key.  If
  1426.                     you  delete the file  MAIL2FAX.DMO and/or MAIL2FAX.BTA,
  1427.                     the program will run, but it will run in non-registered
  1428.                     demo mode, and will fax only the first three lines of a
  1429.                     message.  If you happen  to have both MAIL2FAX.BTA  and
  1430.                     MAIL2FAX.DMO, this message would reflect the .BTA file.
  1431.  
  1432.  
  1433.  
  1434.                18 - Keyfile invalid
  1435.                     The  name of  the key file  or some of  its content was
  1436.                     changed.   That invalidates the file.  The name must be
  1437.                     MAIL2FAX.  The suffix must be  .KEY or .BTA or .DMO and
  1438.                     must  not be changed.   The content of  the key file is
  1439.                     validated and checked against the file's name.
  1440.  
  1441.  
  1442.           The following messages  can be  produced as well.  Some of  these
  1443.           relate to the ERRORLEVEL codes listed above - as indicated.  Some
  1444.           of messages are only produced when the DEBUG option is specified.
  1445.  
  1446.  
  1447.                Cannot open the output file <faxfile>
  1448.                     See ERRORLEVEL 2 above
  1449.  
  1450.  
  1451.                XLAT buffer overrun - REPLY
  1452.                     When  replacing  @variables@,  the resulting  text  was
  1453.                     longer than  the  text it  replaced  by more  than  200
  1454.                     characters.    Reduce  the  number  of  times  you  use
  1455.                     @variables@ in this text.
  1456.  
  1457.  
  1458.                Fax Special Reply
  1459.                     Status message - M2F found  the file REPLY.TXT and used
  1460.                     this to generate the reply for this Fax message.
  1461.  
  1462.  
  1463.                Fax OK
  1464.  
  1465.           Ver 1.0                         2              September 26, 1993
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1474.  
  1475.                     Status message  - fax was  successfully sent.   A reply
  1476.                     message  will  be  created  if the  user  selected  one
  1477.                     (REQRR).
  1478.  
  1479.  
  1480.                Fax Number bad
  1481.                     Status message - The fax number entered for the message
  1482.                     was not valid, such  as the wrong number of  digits, LD
  1483.                     (and not allowed) an invalid Alias, or did not match an
  1484.                     entry in the valid NNX table.
  1485.  
  1486.  
  1487.                Fax Number blocked
  1488.                     Status message  - The  number matched  an entry in  the
  1489.                     BLOCKTN.TXT file.
  1490.  
  1491.  
  1492.                Fax Failed
  1493.                     Status  message  -  Transmission  of  the  fax  failed,
  1494.                     including the case where the called number answered but
  1495.                     did not respond as a fax (voice or BBS line?)
  1496.  
  1497.  
  1498.                Fax Busy
  1499.                     Status  message - The  called number  was busy.  One or
  1500.                     more  further  attempts will  be  made.   (No  reply is
  1501.                     generated for this attempt.)
  1502.  
  1503.  
  1504.                Fax Busy2
  1505.                     Status message - The called number was busy again. This
  1506.                     was the last time  a call was  attempted.  A reply  was
  1507.                     generated (if  FAXBUSY.TXT specified), and  the message
  1508.                     was killed.
  1509.  
  1510.  
  1511.                Fax RNA
  1512.                     Status message - The called number did not answer (Ring
  1513.                     No Answer - RNA).  One or more further attempts will be
  1514.                     made.  (No reply is generated for this attempt.)
  1515.  
  1516.  
  1517.                Fax BRNA2
  1518.                     Status  message  - The  called  number  did not  answer
  1519.                     again. This was the  last time a call was attempted.  A
  1520.                     reply was  generated (if FAXRNA.TXT specified), and the
  1521.                     message was  killed.  (Actually, this  last attempt was
  1522.                     RNA.  Prior attempts were all either RNA or Busy.
  1523.  
  1524.  
  1525.  
  1526.           Ver 1.0                         3              September 26, 1993
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1535.  
  1536.                Fax No dial tone
  1537.                     Status message - The  fax modem reported NO  DIAL TONE.
  1538.                     This  means that either the line it was dialling out on
  1539.                     was disconnected, or at the exact time of calling out a
  1540.                     call came in.
  1541.  
  1542.  
  1543.                Fax Other
  1544.                     Status message  - The status code returned for this fax
  1545.                     was not recognised as on of the standard ones.
  1546.  
  1547.  
  1548.                Msg <msgno>, <statuscd>, <to>, <from>, <subject>
  1549.                     Now processing  this particular message.   The  message
  1550.                     was selected because its <to> field matches the user id
  1551.                     specified (may be partial match on leading characters).
  1552.                     The  message will  still  be  ignored  if it  does  not
  1553.                     contain @ <fax  no> or @ <fax alias> in  the <to> field
  1554.                     as well.   (DEBUG Level 1)
  1555.  
  1556.  
  1557.                Rest of fax skipped.  Please register this software.
  1558.                     This software is  running without its  registration key
  1559.                     file (MAIL2FAX.KEY).   This means that  a few functions
  1560.                     are  restricted.  In  particular we  will fax  only the
  1561.                     first 3 or 4 lines of a message. 
  1562.                     When  you   have  the  file  MAIL2FAX.KEY   or  current
  1563.                     MAIL2FAX.DMO or  MAIL2FAX.DTA, place it in  what is the
  1564.                     current  directory at  the  time  Mail2Fax is  started.
  1565.                     Normally  that is  the directory where  Mail2Fax.Exe is
  1566.                     located (e.g. \ZFAX in our installation instructions.)
  1567.  
  1568.  
  1569.                Call collision/ no dial tone
  1570.                     (See Fax No Dial tone)  This message is displayed as we
  1571.                     retry the call.  (DEBUG Level 1)
  1572.  
  1573.  
  1574.                Failure invoking
  1575.                     The  M2F software was  unable to invoke  the program or
  1576.                     batch  file that was specified  as FAXCMD in the config
  1577.                     file.  The  error code returned would  typically be one
  1578.                     of the following:
  1579.                          Code  │ Meaning
  1580.                            -2  │ File not found
  1581.                            -3  │ Path not found
  1582.                            -5  │ Access denied
  1583.                            -6  │ Invalid handle
  1584.                            -8  │ Not enough memory
  1585.                           -10  │ Invalid environment
  1586.  
  1587.           Ver 1.0                         4              September 26, 1993
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1596.  
  1597.                           -11  │ Invalid format
  1598.                           -18  │ No more files
  1599.  
  1600.  
  1601.                Unknown Return code (n)
  1602.                     The command/batch  file that M2F invoked  as the FAXCMD
  1603.                     (see  config file returned  a DOS error  level that was
  1604.                     unknown (not 0, 1, 2, 3, 4, 34, 35, 36, 37 or 38)
  1605.  
  1606.  
  1607.                Not enough memory
  1608.                     See 1 - Out of Memory above.
  1609.  
  1610.  
  1611.                Keyword not recognised: ( <keyword>  <text> )
  1612.                     See 5 - Invalid keyword in config file.
  1613.  
  1614.  
  1615.                ID <userid>
  1616.                     Displays what user id  we are scanning for now.   These
  1617.                     ids are specified in the config file with the FAXID and
  1618.                     NETID keywords.  (DEBUG Level 1)
  1619.  
  1620.  
  1621.                Program exit with error code <sExitCode>
  1622.                     Reports  the DOS ERRORLEVEL  that Mail2fax.exe will set
  1623.                     upon  exit. These  codes and  their meaning  are listed
  1624.                     above.
  1625.  
  1626.  
  1627.                <nNoProc> messages processed
  1628.                     No messages found to process
  1629.                     Reports  the number  of messages  that we  processed as
  1630.                     being faxes (and sent or tried to send).
  1631.  
  1632.  
  1633.                Mail2Fax done
  1634.                     Last message just before exit.
  1635.  
  1636.  
  1637.                Wrong # of parameters
  1638.                     MAIL2FAX.EXE must have 3 or 4 parameters
  1639.                     Name and location of the config file.  If no suffix  is
  1640.                     specified, .CFG is assumed,  e.g.  MAIL2FAX.CFG
  1641.                     Name and location  of the  message base to  scan   e.g.
  1642.                     C:\PCB\MAIN\MSGS99
  1643.                     Name and location of the file we write fax text to
  1644.                     e.g.  FAXFILE  
  1645.                     Debug  level (optional parameter),  a one-digit number,
  1646.                     typically 1 or 5, see Troubleshooting guide.
  1647.  
  1648.           Ver 1.0                         5              September 26, 1993
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1657.  
  1658.  
  1659.                (1)  Registered  to  NOT  REGISTERED, serial  #  DEMO  COPY,
  1660.           version <version>
  1661.                (2) Registered  to BETA  USER, serial #  BETA COPY,  version
  1662.           <version>
  1663.                (3)  Registered  to  <name>, serial  #  <serialno>,  version
  1664.           <version>
  1665.  
  1666.                     Identifies that whether this  copy is registered and to
  1667.                     whom.    The  Non-registered   copy  does  not  have  a
  1668.                     MAIL2FAX.KEY, MAIL2FAX.BTA or MAIL2FAX.DMO file.
  1669.                     The Beta version has file MAIL2FAX.BTA.
  1670.                     The   registered  version   has  the   full  key   file
  1671.                     MAIL2FAX.KEY.
  1672.                     The registered Demo version has file MAIL2FAX.DMO.
  1673.  
  1674.  
  1675.                System Clock wrong
  1676.                     See 16 - Date wrong on system clock
  1677.  
  1678.  
  1679.                Demo Key expired.  Please Register this program
  1680.                     See 17 - Demo key expired
  1681.  
  1682.  
  1683.                Keyfile invalid
  1684.                     See 18 above.
  1685.  
  1686.  
  1687.                Beta version out of date, please get a new copy
  1688.                     Beta  versions must  be refreshed  periodically.   If a
  1689.                     copy is  more  than  45 days  old,  this  message  will
  1690.                     appear.  The  program will also pause  10+ seconds when
  1691.                     this message  is displayed.  This  message only appears
  1692.                     for   copies   running   with   the   Beta   key   file
  1693.                     (MAIL2FAX.BTA).  It will disappear when you obtain your
  1694.                     regular .KEY file.
  1695.  
  1696.  
  1697.                Scanning: <msgbase>
  1698.                     To show  what message base was  specified on MAIL2FAX's
  1699.                     command line.  (DEBUG Level 1)
  1700.  
  1701.  
  1702.                No Reply text
  1703.                     The program was going to  generate a reply message, but
  1704.                     did not since no  text was defined for  this particular
  1705.                     type of  reply.    The  following message  in  the  log
  1706.                     identifies  the  kind of  reply  that  would have  been
  1707.                     otherwise  generated  (e.g.  fax  busy,  fax  no  bad).
  1708.  
  1709.           Ver 1.0                         6              September 26, 1993
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.           Mail2Fax - Sending fax messages from your BBS. Appendix 1 - Error Messages
  1718.  
  1719.                     Either  the  corresponding   file  (e.g.   FAXBUSY.TXT,
  1720.                     FAXBAD1.TXT) was not specified, or was totally empty.
  1721.                     This is  a valid way  of suppressing  certain types  of
  1722.                     replies.
  1723.                     (DEBUG Level 1)
  1724.  
  1725.  
  1726.                File xxxx not specified
  1727.                     xxxx  is one  of the  following:  BLOCKTN,   COVERPAGE,
  1728.                     FAXALIAS,  FAXBAD1,    FAXBUSY,    FAXFAIL,    FAXSENT,
  1729.                     OKNNX,  TOOMANY, or  TOOMANY.
  1730.                     This is a diagnostic  warning  (DEBUG Level 1)  to warn
  1731.                     that this particular option was not specified.
  1732.  
  1733.                     This would  mean, for instance  if FAXBUSY is  not used
  1734.                     that  M2F would not  generate a  reply message  for the
  1735.                     FAXBUSY2 condition (fax busy on repeated attempts.
  1736.  
  1737.                     This may be what was intended.
  1738.  
  1739.  
  1740.                Leading blank missing in xxxxx
  1741.                     xxxx is one of  the following:  BLOCKTN,   FAXALIAS, or
  1742.                     OKNNX.  This is  a diagnostic warning  (DEBUG  Level 1)
  1743.                     to warn that file  specified for this particular option
  1744.                     was in the wrong  format.  These files are  searched by
  1745.                     M2F for  a matching entry.  To avoid incorrect matches,
  1746.                     each  entry in  the file  must be  preceded by  a space
  1747.                     character, including the left-most entry on every line.
  1748.                     When DEBUG level 1 is set the program warns if any line
  1749.                     in the file does not have space as its first character.
  1750.  
  1751.  
  1752.  
  1753.                Pause for Debug
  1754.                     When DEBUG level 5  is set, the program will  pause for
  1755.                     10  seconds after    it finishes,  but before  exiting.
  1756.                     This stops the display, giving you a chance to read all
  1757.                     messages.
  1758.                     This  message  is to  remind  you  why  the program  is
  1759.                     pausing.  To suppress  the pause, set DEBUG level  to a
  1760.                     value less than 5.
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.           Ver 1.0                         7              September 26, 1993
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.           
  1779.  
  1780.  
  1781.      V.   Fax coversheet
  1782.  
  1783.                    ┌────────────────────────────────────────────────────────────────────────┐
  1784.                    │ Fax sent by  JOB SEARCH  for one of its users.                         │
  1785.                    └────────────────────────────────────────────────────────────────────────┘
  1786.  
  1787.  
  1788.                          To fax     : @FAXNO@               Attention  : @ATTN@
  1789.  
  1790.                          From       : @FROM@
  1791.  
  1792.                          Subject    : @SUBJECT@
  1793.  
  1794.                          Date       : @DATE@  @TIME@
  1795.  
  1796.                          To follow  : @PAGES@ Page(s)
  1797.  
  1798.                    ┌────────────────────────────────────────────────────────────────────────┐
  1799.                    │ This fax was sent as a service that JOB SEARCH provides to its users   │
  1800.                    │ and subscribers.  This fax originated from the above user(*).          │
  1801.                    │ There are no facilities for our users to receive incoming faxes.       │
  1802.                    │                                                                        │
  1803.                    │ (*) If the message is from "QUERY ENGINE", our computer system has     │
  1804.                    │     identified that there is a Job listing or message on JOB SEARCH    │
  1805.                    │     that matches the selection criteria that you specified.  The       │
  1806.                    │     details are on the next page.         ┌─────────────────────────┐  │
  1807.                    └───────────────────────────────────────────┤ JOB SEARCH              ├──┘
  1808.                                                              ┌─┤ 387 Sunnyside Ave,      │
  1809.                                                              │ │ Toronto, Ont.  M6R 2R9  │
  1810.                                                              │ │ 588-9690 Modem          │
  1811.                                                              │ │ 588-3821 Fax or Modem   │
  1812.                                                              │ │ 588-1111 Voice          ├─┐
  1813.                                                              │ └─────────────────────────┘▓│
  1814.                                                              │ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓│
  1815.                                                              │ Connecting People and Jobs  │
  1816.                                                              └─────────────────────────────┘
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.                  Ver 1.0                         1              September 26, 1993
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.                  Mail2Fax - Sending fax messages from your BBS.                                Appendix 3 - Sample config files
  1840.  
  1841.  
  1842.                  Sample configuration file - with comment entries
  1843.  
  1844.                  // Configuration file for Mail2Fax  Version  1.0
  1845.                  // Blank lines and entries starting with // are ignored
  1846.                  // Entries may be in any order
  1847.  
  1848.                  loglines                  // Show **************** lines in log
  1849.  
  1850.                  DEBUG            1
  1851.  
  1852.                  LOGFILE  C:\PCBLOG\CALLER%PCBNODE%       // PcBoard log file
  1853.                  FAXID    FAX MAIL         // ID for locally posted messages
  1854.                  NETID    JOB SEARCH FAX   // ID for messages from network
  1855.                  PRIV                      // Make replies PRIVATE
  1856.                  FAXCMD   ZFAX.COM         // Command to process/fax an extracted message
  1857.                  SYSOPNAME Frans van Duinen
  1858.                  FAXALIAS  FAXALIAS.TXT    // File with aliasses and fax numbers
  1859.  
  1860.                  // LDOK                   // Flag long distance calls ok (omit if not ok)
  1861.                  // MAXFAX                 // Maximum no of new faxes per user per day
  1862.                  // NOUSERINF              // Do not access any fields in USERS.INF
  1863.                  // SUBJ     Your Fax      // Subject line for reply, NO // ALLOWED
  1864.                  // NOREPLYID              // No replies for this user
  1865.  
  1866.  
  1867.                  COVERPAGE COVRPAGE.TXT    // File with text for covering page
  1868.                                            // Blank cover page with text using @var@
  1869.  
  1870.  
  1871.                  OKNNX   LOCALNNX.TXT      // List of 3 digit NNX numbers that represent
  1872.                                            // valid local area dialing prefixes.
  1873.                                            // Each 3 digit number is preceded by a blank.
  1874.  
  1875.  
  1876.                  BLOCKTN  BLOCKTN.TXT      // List of 7/10 digit telephone numbers that
  1877.                                            // are blocked. Numbers are in 4165883821 or
  1878.                                            // 5883821 form and each number is preceded by
  1879.                                            // a blank
  1880.  
  1881.  
  1882.                  FAXSENT FAXSENT.TXT       // Text for reply if Fax was sent successfully
  1883.                                            // and a reply was requested (ReqRR).
  1884.  
  1885.                  FAXBUSY FAXBUSY.TXT       // Text for reply if number was busy on final try
  1886.  
  1887.  
  1888.                  FAXRNA  FAXRNA.TXT        // Text for reply if number did not answer on
  1889.                                            // final try
  1890.  
  1891.  
  1892.                  Ver 1.0                         1              September 26, 1993
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.                  Mail2Fax - Sending fax messages from your BBS.                                Appendix 3 - Sample config files
  1901.  
  1902.                  FAXFAIL FAXFAIL.TXT       // Text for reply if Fax Software was unable to
  1903.                                            // send fax and reported retry not possible (no
  1904.                                            // fax)
  1905.  
  1906.  
  1907.                  FAXBAD1 FAXBAD1.TXT       // Text for message if The telephone number
  1908.                                            // specified is bad, i.e. too few/many digits,
  1909.                                            // bad NNX or blocked.
  1910.  
  1911.  
  1912.                  //TOOMANY  TOOMANY.TXT    // Text for message if user posted more faxes
  1913.                                            // (new today)than the maximum
  1914.  
  1915.  
  1916.                  //REPLY    REPLY.TXT      // Text for reply to send user (pre-empts sending
  1917.                                            // of any other reply, e.g. FAXSENT, FAXFAIL or
  1918.                                            // FAXBADn)
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.                  Ver 1.0                         2              September 26, 1993
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.                  Mail2Fax - Sending fax messages from your BBS.                                Appendix 3 - Sample config files
  1962.  
  1963.                  Configuration file - no comments
  1964.  
  1965.                  DEBUG            1
  1966.                  LOGFILE  C:\PCBLOG\CALLER%PCBNODE%  
  1967.                  FAXID    FAX MAIL
  1968.                  NETID    JOB SEARCH FAX
  1969.                  PRIV
  1970.                  FAXCMD   ZFAX.COM
  1971.                  SYSOPNAME Frans van Duinen
  1972.                  FAXALIAS  FAXALIAS.TXT
  1973.                  COVERPAGE COVRPAGE.TXT
  1974.                  OKNNX   LOCALNNX.TXT
  1975.                  BLOCKTN BLOCKTN.TXT
  1976.                  FAXSENT FAXSENT.TXT
  1977.                  FAXBUSY FAXBUSY.TXT
  1978.                  FAXRNA  FAXRNA.TXT
  1979.                  FAXFAIL FAXFAIL.TXT 
  1980.                  FAXBAD1 FAXBAD1.TXT 
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.                  Ver 1.0                         3              September 26, 1993
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.           Mail2Fax - Sending fax messages from your BBS.                                Appendix 3 - Sample config files
  2023.  
  2024.           Table of content
  2025.  
  2026.                A.   Overview  . . . . . . . . . . . . . . . . . . . . .   1
  2027.                FaxForward . . . . . . . . . . . . . . . . . . . . . . .   2
  2028.                B.   What is Mail2Fax  . . . . . . . . . . . . . . . . .   2
  2029.                Pcboard  . . . . . . . . . . . . . . . . . . . . . . . .   3
  2030.                C.   How it works  . . . . . . . . . . . . . . . . . . .   3
  2031.                Fax software . . . . . . . . . . . . . . . . . . . . . .   3
  2032.                automatic reply message  . . . . . . . . . . . . . . . .   3
  2033.                FAX MAIL@nnn-nnnn  . . . . . . . . . . . . . . . . . . .   3
  2034.                mail forwarding  . . . . . . . . . . . . . . . . . . . .   3
  2035.                SENDFAX.PPS  . . . . . . . . . . . . . . . . . . . . . .   3
  2036.                FAXID  . . . . . . . . . . . . . . . . . . . . . . . . .   3
  2037.                NETID  . . . . . . . . . . . . . . . . . . . . . . . . .   3
  2038.                FaxForward . . . . . . . . . . . . . . . . . . . . . . .   3
  2039.                PcBoard Extended headers . . . . . . . . . . . . . . . .   4
  2040.                D.   What you need . . . . . . . . . . . . . . . . . . .   4
  2041.                "command line" mode  . . . . . . . . . . . . . . . . . .   4
  2042.                TSR mode . . . . . . . . . . . . . . . . . . . . . . . .   4
  2043.                WinFax Pro and Winfax Lite . . . . . . . . . . . . . . .   4
  2044.                BBS node . . . . . . . . . . . . . . . . . . . . . . . .   5
  2045.                Event  . . . . . . . . . . . . . . . . . . . . . . . . .   5
  2046.                $$LOGOFF.BAT . . . . . . . . . . . . . . . . . . . . . .   5
  2047.                DOS ERRORLEVEL . . . . . . . . . . . . . . . . . . . . .   5
  2048.                no dial tone . . . . . . . . . . . . . . . . . . . . . .   5
  2049.                EC.COM . . . . . . . . . . . . . . . . . . . . . . . . .   5
  2050.                E.   Cover Page and Replies  . . . . . . . . . . . . . .   5
  2051.                @variables . . . . . . . . . . . . . . . . . . . . . . .   6
  2052.                Bill Clinton . . . . . . . . . . . . . . . . . . . . . .   7
  2053.                @SYSOPNAME@  . . . . . . . . . . . . . . . . . . . . . .   7
  2054.                F.   Replies . . . . . . . . . . . . . . . . . . . . . .   7
  2055.                replies  . . . . . . . . . . . . . . . . . . . . . . . .   7
  2056.                REPLY.TXT  . . . . . . . . . . . . . . . . . . . . . . .   8
  2057.                message header . . . . . . . . . . . . . . . . . . . . .   9
  2058.                G.   Screening of fax numbers  . . . . . . . . . . . . .   9
  2059.                local calls  . . . . . . . . . . . . . . . . . . . . . .   9
  2060.                acceptable telephone number ranges . . . . . . . . . . .   9
  2061.                fax number alias . . . . . . . . . . . . . . . . . . . .  10
  2062.                Messages from SYSOP  . . . . . . . . . . . . . . . . . .  11
  2063.                H.   FAX Command . . . . . . . . . . . . . . . . . . . .  11
  2064.                PcBoard Programming Language . . . . . . . . . . . . . .  11
  2065.                editor mode  . . . . . . . . . . . . . . . . . . . . . .  12
  2066.                maximum length . . . . . . . . . . . . . . . . . . . . .  12
  2067.                Echo Conference  . . . . . . . . . . . . . . . . . . . .  12
  2068.                I.   FORWARD Command . . . . . . . . . . . . . . . . . .  12
  2069.                COMMENT2 . . . . . . . . . . . . . . . . . . . . . . . .  13
  2070.                J.   Netmail Fax Messages  . . . . . . . . . . . . . . .  13
  2071.                ATTENTN extended header  . . . . . . . . . . . . . . . .  13
  2072.                NETID  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  2073.                network fax ID . . . . . . . . . . . . . . . . . . . . .  14
  2074.  
  2075.           Ver 1.0                         4              September 26, 1993
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.           Mail2Fax - Sending fax messages from your BBS.                                Appendix 3 - Sample config files
  2084.  
  2085.                K.   Replies to Automated Messages . . . . . . . . . . .  14
  2086.                NOREPLYID  . . . . . . . . . . . . . . . . . . . . . . .  14
  2087.                L.   Fax Busy or No Answer . . . . . . . . . . . . . . .  14
  2088.                Message Read flag  . . . . . . . . . . . . . . . . . . .  15
  2089.                faxing schedule  . . . . . . . . . . . . . . . . . . . .  15
  2090.                M.   No Dial Tone Errors . . . . . . . . . . . . . . . .  15
  2091.                N.   MAIL2FAX Error levels . . . . . . . . . . . . . . .  16
  2092.                O.   Config file . . . . . . . . . . . . . . . . . . . .  16
  2093.                order of the keyword entries . . . . . . . . . . . . . .  17
  2094.                environment variables  . . . . . . . . . . . . . . . . .  17
  2095.                P.   Testing of Fax  . . . . . . . . . . . . . . . . . .  17
  2096.                Q.   How to install Mail2Fax . . . . . . . . . . . . . .  18
  2097.                sample installation  . . . . . . . . . . . . . . . . . .  18
  2098.                DEBUG parameter  . . . . . . . . . . . . . . . . . . . .  21
  2099.                Troubleshooting  . . . . . . . . . . . . . . . . . . . .  21
  2100.                R.   Known Limitations . . . . . . . . . . . . . . . . .  21
  2101.                S.   Copyright . . . . . . . . . . . . . . . . . . . . .  21
  2102.                T.   Registration  . . . . . . . . . . . . . . . . . . .  22
  2103.                $30.- not including Fax Forward  . . . . . . . . . . . .  22
  2104.                $45.- including Fax Forward option . . . . . . . . . . .  22
  2105.                U.   Error messages  . . . . . . . . . . . . . . . . . . 1.1
  2106.                V.   Fax coversheet  . . . . . . . . . . . . . . . . . . 2.1
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.           Ver 1.0                         5              September 26, 1993
  2137.