home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / QWKLAY15.ZIP / QWK.TXT < prev   
Text File  |  1992-07-30  |  50KB  |  1,033 lines

  1.                       QWK Mail Packet File Layout
  2.                            by Patrick Y. Lee
  3.  
  4. Version 1.0 - February 23, 1992
  5.      First release.
  6. Version 1.1 - March 15, 1992
  7.      Minor fixes here and there to make everything just right.
  8. Version 1.2 - May 31, 1992
  9.      Added a few items to the DOOR.ID file that is being supported by
  10.      Qmail DeLuxe² version 1.25.
  11. Version 1.3 - July 6, 1992
  12.      Added changes to the QWK format adopted by Qmail door.  Specifi-
  13.      cally line 10 of CONTROL.DAT file and bytes 126-127 of MESSAG-
  14.      ES.DAT file.  Please refer to the appropriate section for the
  15.      changes.
  16. Version 1.4 - July 18, 1992
  17.      Fixed a few minor mistakes in the documentation (thanks to Cody
  18.      Gibson).  Nothing really major.  Also completed the Netmail sec-
  19.      tion of the documentation.
  20. Version 1.5 - July 30, 1992
  21.      Added off-line commands for Cam-Mail door.  Fixed error in the
  22.      status flag section.  The descriptions for `*' and `+' are incor-
  23.      rect.  Thanks to Bob Blaylock for bringing this up.
  24.  
  25. This document is Copyright 1992 by Patrick Y. Lee.
  26.  
  27. The QWK-format is Copyright 1987 by Sparkware.
  28.  
  29. All program names mentioned in this document are either Copyright or
  30. Trademark of respective owners.
  31.  
  32. The author provides this file as-is without warranty of any kind,
  33. either expressed or implied.  You are using the information in this
  34. file at your own discretion.  The author assumes no responsibilities
  35. for damages, either physically or financially, from the use of this
  36. information.
  37.  
  38. This document may be freely distributed by any means (electronically,
  39. paper, etc.), provided that it is distributed in its entirety.  Por-
  40. tions of this document may be reproduced without credit.
  41.  
  42. The latest version of this file can always be found on Aardvark BBS
  43. (New York, NY) at (212) 496-8324 with an USR HST DS/v.32bis modem.  It
  44. can also be found in the Lunatic Fringe BBS (Plano, TX) at (214) 422-
  45. 2936 USR HST DS.  First time caller can download on both boards.
  46.  
  47.                      -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  48.  
  49.                            Table of Contents
  50.  
  51. 1.  Introduction
  52.     1.1.  Intent
  53.     1.2.  History
  54.     1.3.  Questions, corrections, etc.
  55. 2.  Conventions & overview
  56.     2.1.  The BBS ID
  57.     2.2.  Packet compression
  58.     2.3.  Packet transfer & protocols
  59.     2.4.  Limitations
  60. 3.  QWK files
  61.     3.1.  Naming convention
  62.     3.2.  Control file (CONTROL.DAT)
  63.     3.3.  Welcome file
  64.     3.4.  Goodbye file
  65.     3.5.  News file
  66.     3.6.  Qmail DeLuxe² menu file
  67.     3.7.  New uploads listing (NEWFILES.DAT)
  68.     3.8.  Bulletin file(s) (BLT-x.y)
  69.     3.9.  Message file (MESSAGES.DAT)
  70.     3.10.  Index files (*.NDX)
  71.         3.10.1.  Conference indices
  72.         3.10.2.  Personal index (PERSONAL.NDX)
  73.     3.11.  Pointer file
  74.     3.12.  SESSION.TXT
  75. 4.  REP files
  76.     4.1.  Naming convention
  77.     4.2.  Message file (BBSID.MSG)
  78.     4.3.  Door control messages
  79.     4.3.1.  DOOR.ID file
  80.     4.3.2.  Qmail
  81.     4.3.3.  MarkMail
  82.     4.3.4.  KMail
  83.     4.3.5.  RoseMail
  84.     4.3.6.  Complete Mail Door
  85.     4.3.7.  The MainMail System
  86.     4.3.8.  BGQWK
  87.     4.3.9.  UltraBBS
  88.     4.3.10.  TriMail
  89.     4.3.11.  Cam-Mail
  90.     4.4.  Turning off the echo flag
  91.     4.5.  Tag-lines
  92. 5.  Net mail
  93. A.  Credits & contributions
  94. B.  Sample Turbo Pascal and C code
  95. C.  Sample message
  96. D.  Sample index file
  97.  
  98.                      -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  99.  
  100. To search for a specific section, look for "[x.x]" using your editor
  101. or viewer.  For example, to jump to the tag-lines portion of this
  102. file, search for "[4.5]" with your editor or text viewer.
  103.  
  104.                      -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  105.  
  106. [1]  Introduction
  107.  
  108. [1.1]  Intent
  109.  
  110.      This document is written to facilitate programmers who want to write
  111.      QWK-format mail doors or readers.  It is intended to be a comprehen-
  112.      sive reference covering all areas of QWK-format mail processing. 
  113.      Detailed break down of each file is included, as are implementation
  114.      information.  In addition, door and reader specific information may be
  115.      included, when such information are available to me.
  116.  
  117. [1.2]  History
  118.  
  119.      The QWK-format was invented by Mark "Sparky" Herring in 1987.  It was
  120.      based on Clark Development Corporation's PCBoard version 12.0 message
  121.      base format.  Off-line mail reading has become popular only in recent
  122.      years.  Prior to summer of 1990, there were only two QWK-format off-
  123.      line mail reader programs.  They were Qmail DeLuxe by Mark Herring and
  124.      EZ-Reader by Eric Cockrell.  Similarly for the doors, there were only
  125.      two -- Qmail by Mark Herring and MarkMail by Mark Turner.  They were
  126.      both for PCBoard systems.
  127.  
  128.      A lot has changed in both off-line reader and mail door markets since
  129.      summer 1990.  Now, there are more than a dozen off-line mail readers
  130.      for the PC.  Readers for the Macintosh, Amiga, and Atari exist as
  131.      well.  There are over a half dozen doors for PCBoard, and QWK-format
  132.      doors exist for virtually all of the popular BBS softwares.  All of
  133.      these happened in less than two years!  More readers and doors are in
  134.      development as I write this, keep up the excellent work.  In addition
  135.      to doors, some BBS softwares has QWK-format mail facility built in.
  136.  
  137.      Off-line mail reading is an integral part of BBS calling.  Conference
  138.      traffic and selection on all networks have grown dramatically in re-
  139.      cent years that on-line reading is a thing of the past.  Off-line mail
  140.      reading offers an alternative to reading mail on-line -- It offers
  141.      speed that cannot be achieved with on-line mail reading.
  142.  
  143.      The reason why QWK-format readers and doors seem to have gained popu-
  144.      larity is probably dued to its openness.  The format is readily avail-
  145.      able to any programmer who wishes to write a program that utilize it. 
  146.      Proprietary is a thing of the past, it does not work!  Openness is
  147.      here to stay and QWK-format is a part of it.
  148.  
  149. [1.3]  Questions, corrections, etc.
  150.  
  151.      Most of the message networks today have a conference/echo devoted to
  152.      discussion of off-line readers and mail doors.  The ones I know are on
  153.      FidoNet, ILink, Intelec, and RIME.  If you have questions after read-
  154.      ing anything in here, feel free to drop by any of the above conference
  155.      /echo and I am sure other QWK authors will try to help.
  156.  
  157.      I can be reached at:
  158.  
  159.      CompuServe: >INTERNET:p.lee@green.cooper.edu
  160.      FidoNet: Off-line echo
  161.      ILink: Off-line, Shareware conferences
  162.      Intelec: Off-line conference
  163.      Internet: p.lee@green.cooper.edu
  164.      PlanoNet: Reviews conference
  165.      RIME: ->RUNNINGB, Off-line, Common, Net Admin., Shareware, New Users,
  166.      Turbo Pascal, and Session Manager conferences
  167.  
  168.      Any corrections, extensions, comments, and criticisms are welcomed. 
  169.      Messages from Internet and RIME will probably be answered first.  But
  170.      I do check mail on all other places at least once a week.
  171.  
  172. [2]  Conventions & overview
  173.  
  174.      All offsets referenced in this document will be relative to 1.  I am
  175.      not a computer, I start counting at one, not zero!
  176.  
  177.      Words which are enclosed in quotes should be entered as-is.  The quota-
  178.      tions are not part of the string unless noted.
  179.  
  180.      You may have noticed I use the phrase "mail program" or "mail facili-
  181.      ty" instead of mail doors.  This is because some BBS softwares offer
  182.      the option of creating QWK-format mail packets right from the BBS. 
  183.      With those, there is no need for an external mail door.
  184.  
  185. [2.1]  The BBS ID
  186.  
  187.      The BBS ID (denoted as BBSID) is a 1-8 characters word that identifies
  188.      a particular BBS.  This identifier should be obtained from line 5 of
  189.      the CONTROL.DAT file (see section 3.2.1).
  190.  
  191. [2.2]  Packet compression
  192.  
  193.      Most mail packets are compressed when created by the mail door in
  194.      order to save download time and disk space.  However, many off-line
  195.      reader programs allow the user to unarchive a mail packet outside of
  196.      the reader program, so the reader will not have to unarchive it.  Upon
  197.      exit, the reader will not call the archiver to save it.  It is up to
  198.      the user to archive the replies.  This is useful if the user has limit-
  199.      ed memory and cannot shell out to DOS to run the unarchive program. 
  200.      For readers based on non-PC equipment, the user may be using less
  201.      common compression program that does not have command line equivalent.
  202.  
  203. [2.3]  Packet transfer & protocols
  204.  
  205.      There is no set rule on what transfer protocol should be used.  Howev-
  206.      er, it would be nice for the mail program on the BBS to provide the
  207.      Sysop with options as to what to offer.  This should be a configura-
  208.      tion option for the user.
  209.  
  210. [2.4]  Specifications & limitations
  211.  
  212.      There aren't many known limits in the QWK specification.  However,
  213.      various networks seem to impose artificial limits.  On many of the PC-
  214.      based networks, 99-lines appears to be the upper limit for some soft-
  215.      wares.  However, most of the readers can handle more than that.  Read-
  216.      er authors reading this may want to offer the option to split replies
  217.      into n lines each (the actual length should be user definable so when
  218.      the network software permits, the user can increase this number).
  219.  
  220. [3]  QWK files
  221.  
  222. [3.1]  Naming convention
  223.  
  224.      Generally, the name of the mail packet is BBSID.QWK.  However, this
  225.      does not have to be the case.  When the user downloads more than one
  226.      mail packet at one time, either the mail program or the transfer pro-
  227.      tocol program will rename the second and subsequent mail packets to
  228.      other names.  They will either change the file extension or add a
  229.      number to the end of the filename.  In either case, you should not
  230.      rely on the name of the QWK file as the BBSID.  The BBSID, as men-
  231.      tioned before, should be obtained from line 5 of the CONTROL.DAT file. 
  232.      In addition, mail packets do not have to end with QWK extension ei-
  233.      ther.  The user may choose to name them with other file extensions.
  234.  
  235. [3.2]  Control file (CONTROL.DAT)
  236.  
  237.      The CONTROL.DAT file is a simple ASCII file.  Each line is terminated
  238.      with a carriage return and line feed combination.  All lines should
  239.      start on the first column.
  240.  
  241.      Line #
  242.       1   My BBS                   BBS name
  243.       2   New York, NY             BBS city and state
  244.       3   212-555-1212             BBS phone number
  245.       4   John Doe, Sysop          BBS Sysop name
  246.       5   20052,MYBBS              Mail door registration #, BBSID
  247.       6   01-01-1991,23:59:59      Mail packet creation time
  248.       7   JANE DOE                 User name (upper case)
  249.       8                            Name of menu for Qmail, blank if none
  250.       9   0                        ? Seem to be always zero
  251.      10   999                      Total number of messages in packet
  252.      11   121                      Total number of conference minus 1
  253.      12   0                        1st conf. number
  254.      13   Main Board               1st conf. name (13 characters or less)
  255.      14   1                        2nd conf. number
  256.      15   General                  2nd conf. name
  257.      ..   3                        etc. onward until it hits max. conf.
  258.      ..   123                      Last conf. number
  259.      ..   Amiga_I                  Last conf. name
  260.      ..   HELLO                    Welcome screen file
  261.      ..   NEWS                     BBS news file
  262.      ..   SCRIPT0                  Log off screen
  263.  
  264.      Some mail doors, such as MarkMail, will send additional information
  265.      about the user from here on.
  266.  
  267.      0                             ?
  268.      25                            Number of lines that follow this one
  269.      JANE DOE                      User name in uppercase
  270.      Jane                          User first name in mixed case
  271.      NEW YORK, NY                  User city information
  272.      718 555-1212                  User data phone number
  273.      718 555-1212                  User home phone number
  274.      108                           Security level
  275.      00-00-00                      Expiration date
  276.      01-01-91                      Last log on date
  277.      23:59                         Last log on time
  278.      999                           Log on count
  279.      0                             Current conference number on the BBS
  280.      0                             Total KB downloaded
  281.      999                           Download count
  282.      0                             Total KB uploaded
  283.      999                           Upload count
  284.      999                           Minutes per day
  285.      999                           Minutes remaining today
  286.      999                           Minutes used this call
  287.      32767                         Max. download KB per day
  288.      32767                         Remaining KB today
  289.      0                             KB downloaded today
  290.      23:59                         Current time on BBS
  291.      01-01-91                      Current date on BBS
  292.      My BBS                        BBS network tag-line
  293.      0                             ?
  294.  
  295.      Some mail doors will offer the option of sending an abbreviated confer-
  296.      ence list.  That means the list will contain only conferences the user
  297.      has selected.  This is done because some mail readers cannot handle
  298.      more than n conferences at this time.  Users using those readers will
  299.      need this option if the BBS they call have too many conferences.
  300.  
  301. [3.3]  Welcome file
  302.  
  303.      This file usually contains the log on screen from the BBS.  The exact
  304.      filename is specified in the CONTROL.DAT file, after the conference
  305.      list.  This file may be in any format the Sysop chooses it be -- usu-
  306.      ally either in plain ASCII or with ANSI screen control code.  Some
  307.      Sysops (notably PCBoard Sysops) may use BBS-specific color change code
  308.      in this file as well.  Current mail programs seem to handle the trans-
  309.      lations between BBS-specific code to ANSI based screen control codes.
  310.  
  311.      Even if the CONTROL.DAT file contains the filename of this file, it
  312.      may not actually exist in the mail packet.  Sometimes, users will
  313.      manually delete this file before entering the mail reader.  Some off-
  314.      line readers offer the option to not display this welcome screen; some
  315.      will display this file regardless.  Some doors, similarly, will offer
  316.      option to the user to not send this file.
  317.  
  318. [3.4]  Goodbye file
  319.  
  320.      Similar to the welcome file above, the filename to the goodbye file is
  321.      in the CONTROL.DAT file.  This is the file the BBS displays when the
  322.      user logs off the board.  It is optional, as always, to send this file
  323.      or to display it.
  324.  
  325. [3.5]  News file
  326.  
  327.      Many mail doors offer the option to send the news file from the BBS. 
  328.      Most will only send this when it has been updated.  Like the welcome
  329.      and goodbye files, the filename to the news file is found in the CON-
  330.      TROL.DAT file.  It can be in any format the Sysop chooses, but usually
  331.      in either ASCII or ANSI.  Like the welcome screen, current mail facili-
  332.      ties seem to handle translation between BBS-specific control codes to
  333.      ANSI screen control codes.
  334.  
  335. [3.6]  Qmail DeLuxe² menu file
  336.  
  337.      This file is of use only for Qmail DeLuxe² mail reader by Sparkware. 
  338.      The filename is found on line 8 of the CONTROL.DAT file.
  339.  
  340. [3.7]  New uploads listing (NEWFILES.DAT)
  341.  
  342.      Most mail programs on the BBS will offer the option to scan new files
  343.      uploaded to the BBS.  The result is found in a file named
  344.      NEWFILES.DAT.  The mail program, if implementing this, should update
  345.      the last file scan field in the user's profile, if there is such a
  346.      field, as well as other information required by the BBS.  The mail
  347.      program should, of course, scan new files only in those areas the user
  348.      is allowed access.
  349.  
  350. [3.8]  Bulletin files (BLT-x.y)
  351.  
  352.      Most mail programs will also offer the option to include updated bulle-
  353.      tin files found on the BBS in the mail packet.  The bulletins are
  354.      named BLT-x.y, where x is the conference/echo the bulletin came from,
  355.      and y the bulletin's actual number.  The mail program will have to
  356.      take care of updating the last read date on the bulletins in the user
  357.      record.
  358.  
  359. [3.9]  Message file (MESSAGES.DAT)
  360.  
  361.      The MESSAGES.DAT file is the most important.  This is where all of the
  362.      messages are contained in.  The QWK file format is based on PCBoard
  363.      12.0 message base format from Clark Development Corporation (maker of
  364.      PCBoard BBS software).
  365.  
  366.      The file has a logical record length of 128-bytes.  The first record
  367.      of MESSAGES.DAT always contain a copyright notice saying "Produced by
  368.      Qmail...Copyright (c) 1987 by Sparkware.  All Rights Reserved".  The
  369.      rest of the record is space filled.  Actual messages consist of a 128-
  370.      bytes header, plus one or more 128-bytes block with the message text. 
  371.      Actual messages start in record 2.  The header block is layed out as
  372.      follows:
  373.  
  374.      Offset  Length  Description
  375.      ------  ------  ----------------------------------------------------   
  376.          1       1   Message status flag (unsigned character)
  377.                      ' ' = public, unread
  378.                      '-' = public, read
  379.                      '*' = private, read by someone but not by intended
  380.                      recipient
  381.                      '+' = private, read by official recipient
  382.                      '~' = comment to Sysop, unread
  383.                      '`' = comment to Sysop, read
  384.                      '%' = sender password protected, unread
  385.                      '^' = sender password protected, read
  386.                      '!' = group password protected, unread
  387.                      '#' = group password protected, read
  388.                      '$' = group password protected to all
  389.          2       7   Message number (in ASCII)
  390.          9       8   Date (mm-dd-yy, in ASCII)
  391.         17       5   Time (24 hour hh:mm, in ASCII)
  392.         22      25   To (uppercase, left justified)
  393.         47      25   From (uppercase, left justified)
  394.         72      25   Subject of message (mixed case)
  395.         97      12   Password (space filled)
  396.        109       8   Reference message number (in ASCII)
  397.        117       6   Number of 128-bytes blocks in message (including the
  398.                      header, in ASCII; the lowest value should be 2, header
  399.                      plus one block message; this number may not be left
  400.                      flushed within the field)
  401.        123       1   Flag (ASCII 225 means message is active; ASCII 226
  402.                      means this message is to be killed)
  403.        124       2   Conference number (unsigned word)
  404.        126       2   Logical message number in the current packet; i.e.
  405.                      this number will be 1 for the first message, 2 for the
  406.                      second, and so on. (unsigned word)
  407.        128       1   Indicates whether the message has a network tag-line
  408.                      or not.  A value of '*' indicates that a network tag-
  409.                      line is present; a value of ' ' (space) indicates
  410.                      there isn't one.  Messages sent to readers (non-net-
  411.                      status) generally leave this as a space.  Only network
  412.                      softwares need this information.
  413.  
  414.      Fields such as To, From, Subject, Message #, Reference #, and the like
  415.      are space padded if they are shorter than the field's length.
  416.  
  417.      The message text starts in the next record.  You can find out how many
  418.      blocks make up one message by looking at the value of "Number of 128
  419.      byte blocks".  Instead of carriage return and line feed combination,
  420.      each line in the message end with an ASCII 227 (pi character) symbol. 
  421.      There are reports that some (buggy) readers have problems with messag-
  422.      es which do not end the last line in the message with an ASCII 227. 
  423.      If a message does not completely occupy the 128-bytes block, the re-
  424.      mainder of the block is padded with space or null.
  425.  
  426.      Note that there seems to exist old doors which will use one byte to
  427.      represent the conference number and pad the other one with an ASCII 32
  428.      character.  The program reading this information will have to deter-
  429.      mine whether the ASCII 32 in byte 125 of the header is a filler or
  430.      part of the unsigned word.  One method is to look in the CONTROL.DAT
  431.      file to determine the highest conference number.
  432.  
  433.      Even though most mail programs will generate MESSAGES.DAT files that
  434.      appear in conference order, this is not always the case.  Tomcat!
  435.      (mail door for Wildcat! BBS) generates MESSAGES.DAT that is not in
  436.      conference order.  This is due to how Wildcat! itself stores mail on
  437.      the BBS.  Another known system that behaves this way is Auntie, which
  438.      has its mail door QWiKer.
  439.  
  440.      Note that some mail doors offer the option of sending a mail packet
  441.      even though there may be no messages to send -- thus an empty
  442.      MESSAGES.DAT file.  This was tested with Qmail 4.0 door and it sent a
  443.      MESSAGES.DAT file that contains a few empty 128-bytes blocks.  Other
  444.      mail doors seem to be able to produce QWK files without the MESSAG-
  445.      ES.DAT file at all!  Apparently, there was no standard established in
  446.      this procedure.
  447.  
  448. [3.10]  Index files (*.NDX)
  449.  
  450. [3.10.1]  Conference indices
  451.  
  452.      The index files contain a list of pointers pointing to the beginning
  453.      of messages in the MESSAGES.DAT file.  The pointer is in terms of the
  454.      128-bytes block logical record that the MESSAGES.DAT file is in.  Each
  455.      conference has its own xxx.NDX file, where xxx is the conference num-
  456.      ber left padded with zeroes.  Some mail programs offer the user the
  457.      option to not generate index files.  So the mail readers need to cre-
  458.      ate the index files if they are missing.
  459.  
  460.      EZ-Reader 1.xx versions will convert the NDX files from Microsoft MKS
  461.      format into IEEE long integer format.  The bad part about this is that
  462.      the user may store those index files back into the QWK file.  When
  463.      another reader reads the index files, it will be very confused!
  464.  
  465.      Special note for BBSes with more than 999 conferences: Index files for
  466.      conferences with four digit conference numbers is named xxxx.NDX,
  467.      where xxxx is the conference number (left padded with zeroes).  The
  468.      filenames for three digit conferences are still named xxx.NDX on these
  469.      boards.  I would assume filenames for conferences in the five digit
  470.      range is xxxxx.NDX, but I have not seen a BBS with 10,000 or more
  471.      conferences yet!
  472.  
  473.      Each NDX file uses a five bytes logical record length and is formatted
  474.      to:
  475.  
  476.      Offset  Length  Description
  477.      ------  ------  ------------------------------------------------------
  478.          1       4   Record number pointing to corresponding message in
  479.                      MESSAGES.DAT.  This number is in the Microsoft MKS$
  480.                      BASIC format.
  481.          5       1   Conference number of the message.  This byte should
  482.                      not be used because it duplicates both the filename of
  483.                      the index file and the conference # in the header.  It
  484.                      is also one byte long, which is insufficient to handle
  485.                      conferences over 255.
  486.  
  487.      Please refer to appendix B for routines to deal with MKS numbers.
  488.  
  489. [3.10.2]  Personal index (PERSONAL.NDX)
  490.  
  491.      There is a special index file named PERSONAL.NDX.  This file contains
  492.      pointers to messages which are addressed to the user, i.e. personal
  493.      messages.  Some mail door and utility programs also allow the selec-
  494.      tion of other messages to be flagged as personal messages.
  495.  
  496. [3.11]  Pointer file
  497.  
  498.      Pointer file is generally included so that the user can reset the last
  499.      read pointers on the mail program, in case there is a crash on the BBS
  500.      or some other mishaps.  There should be little reason for the reader
  501.      program to access the pointer file.
  502.  
  503.      The pointer files I have seen are:
  504.  
  505.      KMail          BBSID.PNT
  506.      MarkMail       BBSID.PNT
  507.      Qmail          BBSID.PTR
  508.      QWiKer         HMP.PTR
  509.      SFMailQwk      BBSID.SFP
  510.  
  511.      Additions to this list are welcomed.
  512.  
  513. [3.12]  SESSION.TXT
  514.  
  515.      This file, if included, will contain the message scanning screen the
  516.      user sees from the door.
  517.  
  518. [4]  REP files
  519.  
  520. [4.1]  Naming convention
  521.  
  522.      The reply file is named BBSID.MSG, where BBSID is the ID code for the
  523.      BBS found on line 5 of the CONTROL.DAT file.  Once this file has been
  524.      created, the mail reader can archive it up into a file with REP exten-
  525.      sion.
  526.  
  527. [4.2]  Message file (BBSID.MSG)
  528.  
  529.      Replies use the same format as the MESSAGES.DAT file, except that
  530.      message number field will contain the conference number instead.  In
  531.      other words, the conference number will be placed in the two bytes
  532.      (binary) starting at offset 124, as well as the message number field
  533.      (ASCII) at offset 2.
  534.  
  535.      A private message is indicated by '*' in the message status flag.  For
  536.      some reason, most mail doors only accept '*' as a private message and
  537.      not '+'.
  538.  
  539.      The first 128-bytes record of the file is the header.  Instead of the
  540.      copyright notice, it contains the BBSID of the BBS.  This 1-8 charac-
  541.      ter BBSID must start at the very first byte and must match what the
  542.      BBS has.  The rest of the record is space padded.  The replies start
  543.      at record 2.  Each reply message will have a 128-bytes header, plus
  544.      one or more for the message text; followed by another header, and so
  545.      on.
  546.  
  547.      The mail program must check to make sure the BBSID in the first block
  548.      of the BBSID.MSG file matches what the BBS has!
  549.  
  550. [4.3]  Door control messages
  551.  
  552.      These messages allow the user to change their setup on the BBS by
  553.      simply entering a message.  The goal is to allow the user to be able
  554.      to control most areas of the BBS via the mail door.  Different mail
  555.      doors have different capabilities.  Most all of them offer the ability
  556.      to add and drop a conference, as well as reset the last read pointers
  557.      in a conference.
  558.  
  559. [4.3.1]  DOOR.ID file
  560.  
  561.      The DOOR.ID file was first introduced by Greg Hewgill with Tomcat!
  562.      mail door and SLMR mail reader.  Since then, many other authors have
  563.      picked up this idea and use the format.  This file provides the neces-
  564.      sary identifiers a reader needs to send add, drop, etc. messages to
  565.      the mail door.  It tells the reader who to address the message to and
  566.      what can be put in the subject line.
  567.  
  568.      DOOR = <doorname>             This is the name of the door that creat-
  569.                                    ed the QWK packet, i.e. <doorname> =
  570.                                    Tomcat.
  571.      VERSION = <doorversion>       This is the version number of the door
  572.                                    that created the packet, i.e.
  573.                                    <doorversion> = 2.9.
  574.      SYSTEM = <systemtype>         This is the underlying BBS system type
  575.                                    and version, i.e. <systemtype> = Wildcat
  576.                                    2.55.
  577.      CONTROLNAME = <controlname>   This is the name to which the reader
  578.                                    should send control messages, eg.
  579.                                    <controlname> = TOMCAT.
  580.      CONTROLTYPE = <controltype>   This can be one of ADD, DROP, REQUEST,
  581.                                    or others.  ADD and DROP are pretty
  582.                                    obvious (they work as in MarkMail), and
  583.                                    REQUEST is for use with BBS systems that
  584.                                    support file attachments.  Try out SLMR
  585.                                    with CONTROLTYPE = REQUEST and use the Q
  586.                                    function.  (This seems to be a Wildcat!
  587.                                    BBS feature.)
  588.      RECEIPT                       This flag indicates that the door/BBS is
  589.                                    capable of return receipts when a mes-
  590.                                    sage is received.  If the first three
  591.                                    letters of the subject are RRR, then the
  592.                                    door should strip the RRR and set the
  593.                                    'return-receipt-requested' flag on the
  594.                                    corresponding message.
  595.      MIXEDCASE = YES               If this line is found then the reader
  596.                                    will let you use upper and lower case
  597.                                    names and subjects.  This is first found
  598.                                    in Qmail DeLuxe² 1.25 version.  Most
  599.                                    other QWK readers permit the use of
  600.                                    mixed case subject lines but force the
  601.                                    names to upper case only.
  602.      FIDOTAG = YES                 If this line is found then the reader
  603.                                    will automatically use FidoNet compliant
  604.                                    tag-lines.
  605.  
  606.      None of the lines are actually required and they may appear in any
  607.      order.  Of course, you would need a CONTROLNAME if you have any
  608.      CONTROLTYPE lines.
  609.  
  610. [4.3.2]  Qmail
  611.  
  612.      Send a message addressed to "QMAIL" with a subject of "CONFIG".  Then,
  613.      enter any of the commands listed below inside the text of your mes-
  614.      sage.  Remember to use one command per line.
  615.  
  616.      ADD <confnum>            Add a conference into the Qmail Door scanning
  617.                               list.  "YOURS" can also be added to the com-
  618.                               mand if the user wishes to receive messages
  619.                               only addressed them.  i.e. "ADD 1 YOURS"
  620.      DROP <confnum>           Drop a conference from the Qmail Door scan-
  621.                               ning list.
  622.      RESET <confnum> <value>  Resets a conference to a particular value.
  623.                               The user can use "HIGH-xxx" to set the con-
  624.                               ference to the highest message in the base.
  625.      CITY <value>             Changes the "city" field in the user's
  626.                               PCBoard entry.
  627.      PASSWORD <value>         Changes the user's login password.
  628.      BPHONE <value>           Business/data phone number
  629.      HPHONE <value>           Home/voice phone number
  630.      PCBEXPERT <on|off>       Turns the PCBoard expert mode ON or OFF.
  631.      PCBPROT <value>          PCBoard file transfer protocol (A-Z).
  632.      PAGELEN <value>          Set page length inside PCBoard.
  633.      PCBCOMMENT <value>       Set user maintained comment.
  634.      AUTOSTART <value>        Qmail Door autostart command.
  635.      PROTOCOL <value>         Qmail Door file transfer protocol (A-Z).
  636.      EXPERT <ON or OFF>       Turns the Qmail Door expert mode ON or OFF.
  637.      MAXSIZE <value>          Maximum size of the user's .QWK packet (in
  638.                               bytes)
  639.      MAXNUMBER <value>        Maximum number of messages per conference.
  640.  
  641. [4.3.3]  MarkMail
  642.  
  643.      Send a message addressed to "MARKMAIL" with the subject line saying:
  644.  
  645.      ADD [value]         in the conference you want to add
  646.      DROP                in the conference you want to drop
  647.      YOUR [value]        in the conference you want only your mail sent
  648.      YA [value]          in the conference you want only your mail + mail
  649.                          addressed to "ALL"
  650.      FILES ON or OFF     in any conference to tell MarkMail whether to scan
  651.                          for new files or not.
  652.      BLTS ON or OFF      to turn on and off, respectively, of receiving
  653.                          bulletins.
  654.      OWN ON or OFF       to turn on and off, respectively, of receiving
  655.                          messages you sent
  656.      DELUXE ON or OFF    to turn on and off, respectively, of receiving
  657.                          DeLuxe menu
  658.      LIMIT <size>        to set the maximum size of MESSAGES.DAT file can
  659.                          be, it cannot exceed what the Sysop has set up
  660.  
  661.      An optional number can be added onto the commands "ADD", "YOUR", and
  662.      "YA".  If this number is positive, then it will be treated as an abso-
  663.      lute message number.  MarkMail will set your last read pointer to that
  664.      number.  If it is negative, MarkMail will set your last read pointer
  665.      to the highest minus that number.  For example: "ADD -50" will add the
  666.      conference and set the last read pointer to the highest in the confer-
  667.      ence minus 50.
  668.  
  669. [4.3.4]  KMail
  670.  
  671.      Send a private message addressed to "KMAIL" in the conference that you
  672.      want to add, drop, or reset.  The commands are "ADD", "DROP", and
  673.      "RESET #", respectively.  The "#" is the message number you want your
  674.      last read pointer in the conference be set to.
  675.  
  676. [4.3.5]  RoseMail
  677.  
  678.      The RoseMail door allows configuration information be placed in either
  679.      the subject line or message text.  The message must be addressed to
  680.      "ROSEMAIL".  For only one command, it can be placed in the subject
  681.      line.  For more than one changes, the subject line must say "CONFIG"
  682.      and each change be placed in the message text.  Every line should be
  683.      left justified.  Valid commands are:
  684.  
  685.      Command                                           Example
  686.      ───────────────────────────────────────────────── ──────────────────
  687.      ADD <Conference> [<Message #>] [<Yours>]          ADD 2 -3 Y
  688.      DROP <Conference>                                 DROP 2
  689.      RESET <Conference> <Message #>                    RESET 12 5000
  690.      PCBEXPERT <ON | OFF> - PCBoard expert mode        PCBEXPERT ON
  691.      EXPERT <ON | OFF>    - RoseMail expert mode       EXPERT OFF
  692.      PCBPROT <A - Z>      - PCBoard protocol           PCBPROT Z
  693.      PROT <A - Z>         - RoseMail protocol          PROT G
  694.      PAGELEN <Number>     - Page length                PAGELEN 20
  695.      MAXSIZE <Kbytes>     - Max packet size in Kb      MAXSIZE 100
  696.      MAXNUMBER <max msgs/conference>                   MAXNUMBER 100
  697.      JUMPSTART <Sequence or OFF>                       JUMPSTART D;Y;Q
  698.      MAXPACKET <max msgs/packet>                       MAXPACKET 500
  699.      AUTOSTART <Sequence or OFF> - same as jumpstart   AUTOSTART OFF
  700.      OPT <##> <ON | OFF>  - set door option            OPT 2 OFF
  701.  
  702. [4.3.6]  Complete Mail Door
  703.  
  704.      Send message to "CMPMAIL", the commands are "ADD" and "DROP".  This
  705.      message must be sent in the conference that you want to add or drop.
  706.  
  707. [4.3.7]  The MainMail System
  708.  
  709.      Send a message addressed to "MAINMAIL" with the subject line saying:
  710.  
  711.      ADD [value]         in the conference you want to add
  712.      DROP                in the conference you want to drop
  713.      YOURS [value]       in the conference you want only your mail sent
  714.      YOURS ALL [value]   in the conference you want only your mail + mail
  715.                          addressed to "ALL"
  716.  
  717.      The optional [value] parameter functions identically to the MarkMail
  718.      door -- positive number indicates an absolute message number, negative
  719.      number will set your last read pointer that many messages from the
  720.      last message.
  721.  
  722. [4.3.8]  BGQWK
  723.  
  724.      The BGQWK mail door for GT Power supports file request via message. 
  725.      To request a file, simply enter a message:
  726.  
  727.           To: BGQWK
  728.      Subject: DL:FILENAME.EXT
  729.  
  730.      The FILENAME.EXT has to be exact name, wildcard is not supported.  The
  731.      message text can be left blank.
  732.  
  733.      The only limit on the file request feature is your time and/or your
  734.      file ratio.  The transfer of the requested file(s) will start right
  735.      after the QWK download is completed.  The only exception is when the
  736.      user is using a bidirectional transfer protocol.  There, the REP and
  737.      QWK are sent at the same time, hence, the file request cannot be pro-
  738.      cessed until the QWK transfer is completed.
  739.  
  740. [4.3.9]  UltraBBS
  741.  
  742.      Send a private message addressed to "ULTRABBS" in the conference that
  743.      you want to add, drop, or reset.  The commands are "ADD", "DROP", and
  744.      "RESET #", respectively.  The "#" is the message number you want your
  745.      last read pointer in the conference be set to.  The QWK mail door for
  746.      UltraBBS is built in and it generates the DOOR.ID file as well.
  747.  
  748. [4.3.10]  TriMail
  749.  
  750.      TriMail is the QWK door for TriBBS.  This door will accept off-line
  751.      configuration options sent to Qmail, MarkMail, or TriMail.  This means
  752.      you can send the message to: "QMAIL", "MARKMAIL", or "TRIMAIL" in the
  753.      appropriate conference and it will work.  The available options are:
  754.  
  755.      BLTS ON             Turn bulletin scan on
  756.      BLTS OFF            Turn bulletin scan off
  757.      FILES ON            Turn new files scan on
  758.      FILES OFF           Turn new files scan off
  759.      RESET <value>       Reset last message read pointer
  760.      DROP                Drop this conference
  761.      ADD [value]         Add this conference.  The [value] is optional and
  762.                          will set the last message read pointer.
  763.  
  764. [4.3.11]  Cam-Mail
  765.  
  766.      Address your message to either QMAIL or CAM-MAIL.  Then enter the
  767.      command in the subject line.  Valid commands are:
  768.  
  769.      Add                 Add conferences for scanning
  770.      Bulletins On        Download all new bulletins in QWK packet
  771.      Bulletins Off       Turn off download of new bulletins
  772.      Color On            Download the QWK packet in color, if available
  773.      Color Off           Turn off download in color
  774.      Drop                Drop a conference from scanning
  775.      Duplicates On       Turn on duplicate checking in REP files
  776.      Duplicates Off      Turn off duplicate checking
  777.      Files On            Download new files list in QWK packet
  778.      Files Off           Turn off download of new files list
  779.      Goodbye On          Send the Goodbye files with the QWK packet
  780.      Goodbye Off         Does not send the Goodbye files
  781.      Mailflags On        Notifies users they have mail
  782.      Mailflags Off       Does not notify users of mail
  783.      NDX On              Create NDX files for QWK packet
  784.      NDX Off             Does not create NDX files
  785.      Welcome On          Send the Welcome file with the QWK packet
  786.      Welcome Off         Does not send the Welcome file
  787.  
  788. [4.4]  Turning off the echo flag
  789.  
  790.      In order to send a non-echoed message (not send out to other BBSs), a
  791.      user can enter "NE:" in front of the subject line.  This feature may
  792.      not be offered in all mail doors.
  793.  
  794.      Some mail doors strip out the "NE:" from the subject line.  However,
  795.      that leaves the recipient with nothing to tell that the message was
  796.      not echoed.  Therefore, it is better if "NE:" is not stripped.
  797.  
  798. [4.5]  Tag-lines
  799.  
  800.      The most common format for a reader tag-line is:
  801.  
  802.      ---
  803.       ■ My reader v1.00 ■ The rest of the tag-line.
  804.  
  805.      The three dashes is called a tear-line.  The tag-line is appended to
  806.      the end of the message and is usually one line only.  It is preferred
  807.      that tag-lines conform to this format so that networking softwares
  808.      such as QNet and RNet will not add another tearline to the message
  809.      when they process it.
  810.  
  811.      Softwares on FidoNet does not like mail readers adding a tear-line of
  812.      their own, so if your mail reader offers a FidoNet mode, you will need
  813.      to get rid of the tear-line.  Another item which differs between the
  814.      FidoNet and PC-based networks is that FidoNet does not like extended
  815.      ASCII characters.  So your reader may want to strip high ASCII if the
  816.      user has FidoNet mode on.  Acceptable tag-line style, I believe, is
  817.      just this:
  818.  
  819.       * My Reader v1.00 * The rest of the tag-line.
  820.  
  821. [5]  Net mail
  822.  
  823.      QWK mail doors can be used along or in conjunction with QWK network
  824.      softwares to operate a network.  Many such network exists.  A Net-
  825.      Status packet (one that can be imported to BBS message base) is very
  826.      similar to a normal mail packet users get.  The only difference is at
  827.      the end of the MESSAGES.DAT file.  There, a series of 128 byte blocks
  828.      are appended to indicate Net-Status.  
  829.  
  830.      One byte represent one conference, in groups of 128.  A non-zero value
  831.      means the user is allowed Net Mail status for that conference.  The
  832.      number of Net Status blocks appended to the MESSAGES.DAT file only
  833.      needs to cover the highest conference the user has access to.
  834.  
  835.      The reason these packets have to be different?  Using QWK mail doors
  836.      to send and receive messages require you to be able to send messages
  837.      in other user's name as well as receive private messages in confer-
  838.      ences.  The Net-Status tells the mail door to import the messages even
  839.      if they are from another name.
  840.  
  841.      The only weird implementation here is that the block with the highest
  842.      conference numbers come before the lower ones.  Hence, to illustrate:
  843.  
  844.             Conference 128
  845.             |  Conference 129
  846.             |  |
  847.            vv vv
  848.      0000  00 00 FF 00 00 00 00 00-00 00 00 00 00 00 00 00  Flags for
  849.      0010  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  conferences
  850.      0020  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  128-255
  851.      0030  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  852.      0040  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  853.      0050  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  854.      0060  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  855.      0070  00 00 00 00 00 00 00 00-00 00 00 00 00 00 FF 00
  856.  
  857.             Conference 0
  858.             |  Conference 1
  859.             |  |
  860.            vv vv
  861.      0080  00 FF 00 00 00 00 00 00-00 00 00 00 00 00 00 00  Flags for
  862.      0090  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  conferences
  863.      00A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  0-127
  864.      00B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  865.      00C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  866.      00D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  867.      00E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
  868.      00F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 FF
  869.  
  870.      This example shows that this user has Net Status in conferences 1,
  871.      127, 130, and 254.
  872.  
  873.      MarkMail and KMail doors (both for PCBoard) choos to implement things
  874.      a little differently.  Instead of appending Net-Status blocks to the
  875.      end of the MESSAGES.DAT file, they simply put "MarkMail" or "Kmail..."
  876.      in the first 8 position of the file and the user is granted Net-Status
  877.      in all conferences.
  878.  
  879.                           -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  880.  
  881. [A]  Credits and Contributions
  882.  
  883.      Mark "Sparky" Herring, who originated the QWK-format.
  884.  
  885.      Tim Farley, who started this documentation back in the summer of 1990. 
  886.      The general outline here is the work of Tim.  I filled in the blanks.
  887.  
  888.      Jeffery Foy, who gave us the format for Microsoft single binary versus
  889.      IEEE format.
  890.  
  891.      Greg Hewgill, who (if I remember correctly) wrote the Turbo Pascal
  892.      routines (included in here) to convert between MKS and TP LongInt.
  893.  
  894.      Dennis McCunney, who is the host of the Off-line conference on RIME,
  895.      is very knowledgeable in off-line reading concept and programs.  His
  896.      goal is to have one reader that can read mail packet from any source.
  897.  
  898.      Cody Gibson and Jeffery Foy, whose information on Net-Status packet
  899.      are included here.
  900.  
  901.      All those who have been around the Off-line conferences on ILink (the
  902.      oldest of the four I participate), RIME, Fido, and Intelec, who have
  903.      provided great help over the past three years.  The bulk of the infor-
  904.      mation presented here are from messages in those conferences.  These
  905.      people include, but are no limited to, the followings: Dane Beko,
  906.      Joseph Carnage, Marcos Della, Joey Lizzi, Mark May, and Jim Smith.
  907.  
  908. [B]  Sample Turbo Pascal and C code
  909.  
  910.      Here are a few routines in Turbo Pascal and C to convert Microsoft
  911.      BASIC MKS format to usable IEEE long integer.  These are collected
  912.      over the networks and there is no guarantee that they will work for
  913.      you!
  914.  
  915.      Turbo Pascal (Greg Hewgill ?):
  916.  
  917.      type
  918.           bsingle = array [0..3] of byte;
  919.  
  920.      { converts TP real to Microsoft 4 bytes single }
  921.  
  922.      procedure real_to_msb (preal : real; var b : bsingle);
  923.      var
  924.           r : array [0 .. 5] of byte absolute preal;
  925.      begin
  926.           b [3] := r [0];
  927.           move (r [3], b [0], 3);
  928.      end; { procedure real_to_msb }
  929.  
  930.      { converts Microsoft 4 bytes single to TP real }
  931.  
  932.      function msb_to_real (b : bsingle) : real;
  933.      var
  934.           preal : real;
  935.           r : array [0..5] of byte absolute preal;
  936.      begin
  937.           r [0] := b [3];
  938.           r [1] := 0;
  939.           r [2] := 0;
  940.           move (b [0], r [3], 3);
  941.           msb_to_real := preal;
  942.      end; { function msb_to_real }
  943.  
  944.      Another Turbo Pascal routine to convert Microsoft single to TP LongInt
  945.      (Marcos Della):
  946.  
  947.      index := ((mssingle and not $ff000000) or $00800000) shr (24 -
  948.      ((mssingle shr 24) and $7f)) - 1;
  949.  
  950.      C (identify yourself if you wrote this routine):
  951.  
  952.      /* converts 4 bytes Microsoft MKS format to long integer */
  953.  
  954.      unsigned long mbf_to_int (m1, m2, m3, exp)
  955.      unsigned int m1, m2, m3, exp;
  956.      {
  957.           return (((m1 + ((unsigned long) m2 << 8) + ((unsigned long) m3 <<
  958.           16)) | 0x800000L) >> (24 - (exp - 0x80)));
  959.      }
  960.  
  961.      Microsoft binary (by Jeffery Foy):
  962.  
  963.         31 - 24    23     22 - 0        <-- bit position
  964.      +-----------------+----------+
  965.      | exponent | sign | mantissa |
  966.      +----------+------+----------+
  967.  
  968.      IEEE (C/Pascal/etc.):
  969.  
  970.         31     30 - 23    22 - 0        <-- bit position
  971.      +----------------------------+
  972.      | sign | exponent | mantissa |
  973.      +------+----------+----------+
  974.  
  975.      In both cases, the sign is one bit, the exponent is 8 bits, and the
  976.      mantissa is 23 bits.  You can write your own, optimized, routine to
  977.      convert between the two formats using the above bit layout.
  978.  
  979. [C]  Sample message
  980.  
  981. Here is a sample message in hex and ASCII format:
  982.  
  983. 019780  20 34 32 33 32 20 20 20 30 32 2D 31 35 2D 39 32   4232   02-15-92
  984. 019790  31 33 3A 34 35 52 49 43 48 41 52 44 20 42 4C 41  13:45RICHARD BLA
  985. 0197A0  43 4B 42 55 52 4E 20 20 20 20 20 20 20 20 53 54  CKBURN        ST
  986. 0197B0  45 56 45 20 43 4F 4C 45 54 54 49 20 20 20 20 20  EVE COLETTI     
  987. 0197C0  20 20 20 20 20 20 20 51 45 44 49 54 20 48 41 43         QEDIT HAC
  988. 0197D0  4B 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  K               
  989. 0197E0  20 20 20 20 20 20 20 20 20 20 20 20 34 30 33 36              4036
  990. 0197F0  20 20 20 20 37 20 20 20 20 20 E1 0A 01 00 00 20      7     ß
  991. 019800  2A 20 49 6E 20 61 20 6D 65 73 73 61 67 65 20 64  * In a message d
  992. 019810  61 74 65 64 20 30 32 2D 30 39 2D 39 32 20 74 6F  ated 02-09-92 to
  993. 019820  20 53 74 65 76 65 20 43 6F 6C 65 74 74 69 2C 20   Steve Coletti, 
  994. 019830  52 69 63 68 61 72 64 20 42 6C 61 63 6B 62 75 72  Richard Blackbur
  995. 019840  6E 20 73 61 69 64 3A E3 E3 52 42 3E 53 43 20 AF  n said:ππRB>SC »
  996. 019850  20 65 64 69 74 6F 72 20 69 6E 20 74 68 65 20 28   editor in the (
  997. 019860  6D 61 69 6E 66 72 61 6D 65 29 20 56 4D 2F 43 4D  mainframe) VM/CM
  998. 019870  53 20 70 72 6F 64 75 63 74 20 6C 69 6E 65 20 69  S product line i
  999. [ etc. ]
  1000. 019A00  6E 6F 74 20 61 20 44 6F 63 74 6F 72 2C 20 62 75  not a Doctor, bu
  1001. 019A10  74 20 49 20 70 6C 61 79 20 6F 6E 65 20 61 74 20  t I play one at 
  1002. 019A20  74 68 65 20 48 6F 73 70 69 74 61 6C 2E E3 20 20  the Hospital.π  
  1003. 019A30  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1004. 019A40  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1005. 019A50  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1006. 019A60  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1007. 019A70  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1008. 019A80  E3 50 43 52 65 6C 61 79 3A 4D 4F 4F 4E 44 4F 47  πPCRelay:MOONDOG
  1009. 019A90  20 2D 3E 20 23 33 35 20 52 65 6C 61 79 4E 65 74   -> #35 RelayNet
  1010. 019AA0  20 28 74 6D 29 E3 34 2E 31 30 20 20 20 20 20 20   (tm)π4.10      
  1011. 019AB0  20 20 20 20 20 20 20 20 20 48 55 42 4D 4F 4F 4E           HUBMOON
  1012. 019AC0  2D 4D 6F 6F 6E 44 6F 67 20 42 42 53 2C 20 42 72  -MoonDog BBS, Br
  1013. 019AD0  6F 6F 6B 6C 79 6E 2C 4E 59 20 37 31 38 20 36 39  ooklyn,NY 718 69
  1014. 019AE0  32 2D 32 34 39 38 E3 20 20 20 20 20 20 20 20 20  2-2498π         
  1015. 019AF0  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
  1016.  
  1017. [D]  Sample index file
  1018.  
  1019. Here is a sample index file in hex format:
  1020.  
  1021. 000000  00 00 28 87 19 00 00 30 87 19 00 00 38 87 19 00
  1022. 000010  00 7E 87 19 00 00 07 88 19 00 00 0B 88 19 00 00
  1023. 000020  0F 88 19 00 00 14 88 19 00 00 19 88 19 00 00 1E
  1024. 000030  88 19 00 00 22 88 19 00 00 27 88 19 00 00 2C 88
  1025. 000040  19 00 00 31 88 19 00 00 3B 88 19 00 00 40 88 19
  1026. 000050  00 00 46 88 19 00 00 49 88 19 00 00 4D 88 19 00
  1027. 000060  00 52 88 19 00 00 55 88 19 00 00 59 88 19 00 00
  1028. 000070  60 88 19 00 00 66 88 19 00 00 70 88 19
  1029.  
  1030. This index file is for conference 25.  The values for the offset are as
  1031. follows: 84, 88, 92, 127, 135, 139, 143, 148, 153, 158, 162, 167, 172, 177,
  1032. 187, 192, 198, 201, 205 210, 213, 217, 224, 230, and 240.
  1033.