The databases and system files used in Pbox are all named in the Pbox
system_dat file.

MAREAS         Details about mail areas
======
Area number  / number and name are used to identify the area
Name         \ when displayed in area lists
AName          Name of area as used by Fido or alternative network
Filename       Full device-directory-filename of the mail database
Group          User needs this letter in his 'mareas' entry to access the area
Type           up to 4 of [E]cho [N]etmail [L]ocal [P]rivate [A]ddress
Links          Other boards this feeds into (if Echomail)
Size           Maximum number of messages held in the area
Description    For displaying in area lists
Network        Network this area is in (eg Fidonet), used to get node number
MsgTo          Default recipient for messages in this area
-------------------------------------------------------------------------------
FAREAS         Details about file areas
======
Area number  / number and name are used to identify the area
Name         \ when displayed in area lists
Aname          Network name of area (if TIC area)
Directory      Full device-directory of where the files are stored
Group          User needs this letter in his 'fareas' entry to access the area
Type           [P]rivate, no listing available
Links          Other boards this feeds into (if TIC area)
Description    For displaying in area lists
Network        Network this area is in (eg Fidonet), used to get node number
Header         Full name of a text file to be shown before the first file in
               an area file list
-------------------------------------------------------------------------------
FILES          Details about downloadable/requestable files
=====
Area No.       Area each file is stored in
Name           As displayed in file lists
Timestamp      Longword Qdos date/time the file was received on the board
Downloads      Number of time the file has been downloaded/requested
Description    As displayed in file lists
Password       Cant download without this unless user has power 'O'
-------------------------------------------------------------------------------
MESSAGES       Message bases, lots of fields, mostly Net/Echomail related
========
From           Author of message
To             Recipient
Subject        Topic
MsgID          Unique message identifier
Reply          Message ID this replies to
Written        When message was written
Received       When it was received on the bbs
Read/Sent      When it was exported (if written here) or read by recipient
Timesread      (unsupported)
Cost           (unsupported)
Destzone       Destination of the message, if netmail
Destnet
Destnode
Destpoint
Origzone       Board the message was entered on
Orignet
Orignode
Origpoint
Attributes     Bitfields indicating various attributes
MsgText        The message itself, with embedded 'kludges'
Delete         Flag set non-zero if message is awaiting deletion

               Attribute bits are:
               0        Private
               1        Crash
               2        Received by named recipient
               3        Sent
               4        File Attached
               5        In Transit
               6        Orphan (unknown destination node)
               7        Kill after mailing
               8        Local
               9        Hold for pickup
               10       -
               11       File Request
               12       Return Receipt Request
               13       Is Receipt
               14       Audit Request
               15       File Update Request
-------------------------------------------------------------------------------
MESSAGE_IDX     Message base indexes. MsgID & Time are copies of msgbase fields
========
MsgID           Fido Message ID of this message
Time            Time this message was received
Ref             Unique reference number within this msgbase for Offline Reader
-------------------------------------------------------------------------------
USERS           Details about each user on the bbs
=====
User            User number, used as a cross-reference to other files
Name            Name in proper-name format
City            Place of origin
Pass            Password, case independant
Powers          Things the user has the power to do. Codes - see powers_txt
Mareas          Mail area groups the user can access
Fareas          File area groups the user can access
Ltime           Last time the user called in (Qdos format longword date)
Editor          Editor type - see editor_typ
Protocol        File transfer protocol - see protocol_typ
Menu            Menu style - see menu_dat
Terminal        Terminal type - see terminal_typ
Language        Preferred language ( 0 is default )
More            Prompt at end of screenful or not
Width           Number of columns (ignored at present)
Lines           Number of lines, used by 'more'
TMPD            Time user is allowed per day
TMTD            Time user has used in previous calls today
DNPD            Downloads the user is allowed per day (in kilobytes)
DNTD            Downloads today in previous calls or earlier this call
Calls           Number of calls to the bbs
Uploads         Number of files uploaded
Downloads       Number of files downloaded
Messages        Number of messages entered
Yells           Number of yells to the sysop
Drops           Number of line drops (carrier lost during call)
Cmsg            Current message area
Cfile           Current file area
OLRproto        File transfer protocol for Offline Reader
OLRarchive      Archiver to use for Offline Reader packets
OLRtime         Last time this call downloaded an OLR packet
OLRopts         Optional files to send with OLR messages
USERopts        P for "ask protocol every time"
                K for "show message kludges"
-------------------------------------------------------------------------------
USER_nnnnmsg    Individual user 'current message' databases
============
Area            Message area number
Msgid           Message ID of last read message in this area.

Note: There are no entries for areas that the user has never looked at, which
keeps the files very small.
-------------------------------------------------------------------------------
USER_nnnn_new   Individual user 'new mail' files
=============
Single line entries, first 4 chars are hex area number, remainder of line is
the msgid of the new message. No space between area and msgid, but msgid may
contain spaces.
Note: The file is deleted after new mail has been read, so a non-existent file
means no new mail for this user.
-------------------------------------------------------------------------------
SYSTEM          System varibles file
======
Lines in the format "name = value" where 'name' is case independant, and is
followed by whitespace, '=', more whitespace, then the value assigned to the
variable.
Easiest access to this is via the server, using the 'SYSDAT' command - see
server_txt for details.
-------------------------------------------------------------------------------
SYSMSG_DATn     Language text files.
===========
Lines in the format "name = value" as for system file above. Text is looked for
in a file with the language digit requested by the users 'lang' setting in his
line details (see linevars_txt), and if not found there, in language 0, and if
still not found, in a file called just 'sysmsg_dat'.
Easiest access is via the server using the 'SYSMSG' command - see server_txt.
-------------------------------------------------------------------------------
MAGIC_DAT       Magic filename matching
=========
Lines beginning with '#' are comments.
All other lines are checked for the first word matching the requested magic
name, and the remainder of the line is returned as a reply.
Best used via the server 'REQFILE' command - see server_txt.
-------------------------------------------------------------------------------
NETROUTE_DAT    Netmail routing
============
A series of lines with two address expressions separated by whitespace. The
first address is a wildcard, the second is who to pass those messages matching
the wildcard on to. eg   2:2503/* 2:2503/401  means all mail for any node in
zone 2 net 2503 should be sent to node 401.
Lines are scanned in order for a match, so put specific addresses first, with
looser ones towards the end. End the list with 2:*/* your_hub
(eg 2:*/* 2:2503/401) so that any addresses not matching any of the previous
lines will be sent via your hub. Note that messages with files attached are
not routed, but sent direct to their recipient.
-------------------------------------------------------------------------------
FEEDS          Details about mail and file feeds
=====
FilePW          TIC file password
Address         z:n/d with optional point
Dosnames        'N' if name conversion is NOT required. 'Y' forces the
                mailer to convert all filenames to MSDOS style 8.3
Archive         Archive program to use as named in system_dat (eg zip_prg)
PKtype          Packet type. Any of 2.0  2+  2.2
Capability      for type 2+ packets, normally 0001
Mgrp            Area groups this feed can Areafix into
Fgrp            Area groups this feed can Areafix into
Predial         Modem command to send before dialling this feed
-------------------------------------------------------------------------------
TAGLIST         List of 'tagged' files
=======
One filename per line (full device_dir_filename)
First character ';' indicates a deleted entry
If there is a space in the line, the part before the space is assumed to be
the area number, and the part after the space is the device_dir_filename.
The presence of an area number is used to signal that the "times downloaded"
counter needs increasing for this file.
-------------------------------------------------------------------------------
BLOCKMAIL       List of blocked addresses
=========
One name per line.
In an attempt to stop spamming from the Internet reaching us via MAUSnet
feeds, all messages from some addresses are blocked. This is basically a
list of addresses that have spammed us in the past.
-------------------------------------------------------------------------------
INFOHITS        How popular are the info items
========
All files played by the "info" program are listed here, along with a counter
of how many times thay have been shown. Sysops can use the data to find out
whether it is worth maintaining a particular info item or not.
File            Full filename
Hits            Counter
-------------------------------------------------------------------------------
