home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / SIMPDOC4.ZIP / URGENT.DOC < prev   
Text File  |  1991-07-15  |  27KB  |  658 lines

  1. This document contains any important information that I deem important
  2.             for you to read.  Please give it a look over.
  3.             --------------------------------------------
  4.  
  5.  
  6. 0) Updating from version 1.01.
  7.  
  8. *************** Urgent: FROM101.EXE and FROM1012.EXE ******************
  9.  
  10. Before running any version after 1.01 if you haven't run any version
  11. subsequent to it, you MUST run the program FROM101.EXE (or
  12. for OS/2 users FROM1012.EXE) in your Simplex directory.  This will
  13. convert your CONFIG.BBS, USERLIST.BBS and all your menu files to using
  14. the new format!  The old ones will be names CONFIG.BAK, USERLIST.BAK,
  15. and each menu file will also have a .BAK.
  16.  
  17. Once you have run the new version, and everything is successful, you
  18. can delete the .BAK files.
  19.  
  20. The new version of Simplex now implements 16 user flags (A through P). 
  21. These can be used to restrict access to certain menu items.  There are
  22. two new menu options which allow you to turn on or off user flags.
  23. ***********************************************************************
  24.  
  25.  
  26.  
  27. 1) SMP and SMP/2 have changed radically!
  28.  
  29. ***********************************************************************
  30. SMP has changed its verbs radically from the oMMM-style that it
  31. previously used.  Please read the respective sections in the new
  32. Simplex documentation.
  33.  
  34. These changes were mostly motivated by changes in the way netmail is
  35. handled.  Netmail can now be entered into Simplex as Direct (previously
  36. CM), Routed (previously Normal), or Held.  Echomail always comes out as
  37. Routed mail.  This 3-layered approach allows users without netmail
  38. credit to send routed mail since everyone is suppoed to be granted
  39. access to Fidomail in some form or another.
  40.  
  41. Here is a basic listing of the new SMP verbs:
  42.  
  43. HOLDTO <destination> <sources...>    
  44. HOSTHOLD <destinations...>        
  45. ROUTETO <destination> <sources...>    
  46. HOSTROUTE <destinations...>             
  47. DIRECTTO <destination> <sources...>    
  48. HOSTDIRECT <destinations...>        
  49. ARCHOLD <destination> <sources...>    
  50. ZIPHOLD <destination> <sources...>    
  51. LZHHOLD <destination> <sources...>    
  52. ZOOHOLD <destination> <sources...>    
  53. ARCROUTE <destination> <sources...>    
  54. ZIPROUTE <destination> <sources...>    
  55. LZHROUTE <destination> <sources...>    
  56. ZOOROUTE <destination> <sources...>    
  57. ARCDIRECT <destination> <sources...>    
  58. ZIPDIRECT <destination> <sources...>    
  59. LZHDIRECT <destination> <sources...>    
  60. ZOODIRECT <destination> <sources...>    
  61. HOLDROUTE <destinations...>            
  62. HOLDDIRECT <destinations...>           
  63. ROUTEHOLD <destinations...>        
  64. ROUTEDIRECT <destinations...>       
  65. DIRECTHOLD <destinations...>        
  66. DIRECTROUTE <destinations...>        
  67. LEAVEHOLD <destinations...>        
  68. LEAVEROUTE <destinations...>        
  69. LEAVEDIRECT <destinations...>        
  70. SENDHOLD <destinations...>        
  71. SENDROUTE <destinations...>        
  72. SENDDIRECT <destinations...>        
  73. POLL <destinations...>            
  74. ***********************************************************************
  75.  
  76.  
  77. 2) If menus don't work correctly!
  78.  
  79. If you find that some menus do not work correctly with 1.04, it is
  80. probably due to the fact that you used psuedo-variables (like $t and
  81. $d) using uppercase letters (like $T and $D).  With the advent of menu
  82. macros ($A-$Z), the case used in menus is important.  Pseudo-variables
  83. MUST be in lowercase.
  84.  
  85.  
  86.  
  87. 3) DOS Overlay version of Simplex
  88.  
  89.   DOS users can get a copy of SIMPLEXO.EXE from any of the following
  90. locations.  It saves about 200K of memory over the regular SIMPLEX.EXE
  91. while running.  If you run door games, it might be better to use this. 
  92. It is not included with the distribution ZIP because it would make it
  93. too large.  Simplexo.exe can be downloaded from the Simplex file areas
  94. on any of the following BBSes:
  95.  
  96.  Programmer's Oasis BBS, USA .... 919/226-6984  HST,2400,1200 N,8,1
  97.  Programmer's Oasis 2 BBS, USA .. 919/226-7136  HST,2400,1200,300 N,8,1
  98.  NightHawk BBS, USA ............. 919/228-7002  HST,2400,1200,300 N,8,1
  99.  Bedside Manor BBS, USA ......... 919/233-8566  2400,1200,300 N,8,1
  100.  
  101. If you wish to become an official distribution center, please contact
  102. Chris Laforet through any of the addresses below.
  103.  
  104.          
  105.  
  106. 4) New Distribution Policy.
  107.  
  108. Instead of putting all the Fidonet mail files into the main Simplex 
  109. distribution zips they have been separated out into separate distribution 
  110. zips.  These zips are called MAIL104D.ZIP (for DOS) and MAIL1042.ZIP
  111. (for OS/2) and contain the files needed to handle Fidonet messages. 
  112. They are available from the above distribution centers.
  113.  
  114. For users of Simplex 1.03, there are zips available which only contain
  115. the files needed to upgrade to 1.04.  These are called FROM103D.ZIP,
  116. FROM103O.ZIP, and FROM1032.ZIP and are available from any of the
  117. regular distribution channels.
  118.  
  119.  
  120. 5) Crashes and/or Bugs
  121.  
  122.  Please report any strange crashes or bugs back to me at any of the
  123. addresses indicated below.  OS/2 users especially.  If you get an error
  124. screen from OS/2 with a register dump, PLEASE copy down the numbers
  125. next to CS: and IP: in the dump and give them to me.  That will greatly
  126. assist me in locating the problem!!
  127.  
  128.  
  129. 6) Contacting Chris Laforet Software
  130.  
  131.  You may send me mail through any of the following:
  132.  
  133.  Programmer's Oasis BBS, USA .... 919/226-6984
  134.  Programmer's Oasis 2 BBS, USA .. 919/226-7136
  135.  Fidonet Email .................. Chris Laforet @ 1:151/401 or 1:151/402
  136.  Compuserve Email ............... User ID: 76120,110
  137.  US Mail ........................ Chris Laforet Software
  138.                                   511-D Poplar St
  139.                                   Graham, NC  27253
  140.  
  141.  These I check occassionally:
  142.  
  143.  BIX Email....................... User ID: Laforet
  144.  GEnie Email .................... User ID: XTX74591
  145.  
  146.  
  147. 7) Fidonet users can access a Simplex echo
  148.  
  149.   Users who wish to hook into the private Simplex echo can send me
  150. Fidonet mail at 1:151/401 or 1:151/402 and request it.  What we will do
  151. is set up a passworded session for the mailers and you will have to
  152. poll for mail once or twice a week.  The tag name off the echo is
  153. SIMPLEX.  In your message, send me your node information, the password
  154. you wish the mailers to use (<= 8 letters, case is significant), the
  155. node that you wish to poll (401 or 402) and I'll set it up for you.
  156.  
  157.  
  158. 8) Help files
  159.  
  160.   The help files in help.zip are the .asc and .ans formats needed by
  161. Simplex.  The .src files are the source files in SANSI-compilable
  162. format in case you wish to change the help files.
  163.  
  164.  
  165. 9) Developing Utilities for Simplex
  166.  
  167.   You are encouraged to develop external utilities for Simplex.  Please
  168. feel free to ship them over to the Simplex areas on any of those BBSes. 
  169. The data structures for Simplex are in this doc and are ***BYTE
  170. aligned*** (-Zp1 in MSC).  If you need extra information, contact Chris 
  171. Laforet at any of the above addresses and we'll see what we can do!
  172.  
  173.  
  174. 10) Data information and structures for Simplex v 1.04
  175.  
  176.  
  177. ***** Remember that structures are BYTE-ALIGNED!!! *****
  178.  
  179.  
  180. /* these macros access the user_flags bit-mapped options */
  181.  
  182. #define USER_CLS               0x1         /* send cls codes */
  183. #define USER_MORE              0x2         /* use more? paging */
  184. #define USER_ANSI              0x4         /* use ansi */
  185. #define USER_EDITOR            0x8         /* use full screen editor */
  186. #define USER_EXPERT            0x10      /* expert (abbreviated) menus */
  187. #define USER_FILEATTACH        0x20      /* allow user to fileattach in netmail areas? */
  188. #define USER_DELETED           0x8000      /* user is deleted pending purge */
  189.  
  190.  
  191. /* these macros access the menu type options */
  192.  
  193. #define MENU_SHOW              0x0       /* show menu line only */
  194. #define MENU_CALL              0x1       /* call next menu */
  195. #define MENU_GOTO              0x2       /* goto next menu - no return */
  196. #define MENU_RET               0x3       /* return to previous menu */
  197. #define MENU_REPLACE           0x4       /* goto next menu - replace current menu on stack */
  198.  
  199. #define MENU_ENTER             0x10      /* enter a message */
  200. #define MENU_READ              0x11      /* read a message */
  201. #define MENU_SCAN              0x12      /* scan messages */
  202. #define MENU_QSCAN             0x13      /* quickscan messages */
  203. #define MENU_USERLIST          0x14      /* search/display users list */
  204. #define MENU_NETSEARCH         0x15      /* search for netmail address */
  205. #define MENU_FREQ              0x16      /* generate File Request to netmail node */
  206.  
  207. #define MENU_LIST              0x20      /* list file.bbs listing */
  208. #define MENU_UPLOAD            0x21      /* upload files to area */
  209. #define MENU_DOWNLOAD          0x22      /* download files from area */
  210. #define MENU_RAW               0x23      /* raw directory list in area */
  211. #define MENU_CONTENTS          0x24      /* view archive contents */
  212. #define MENU_NEW               0x25      /* show new files on system */
  213. #define MENU_SRCHNAME          0x26      /* search for file name on system */
  214. #define MENU_SRCHKEY           0x27      /* search for keyword on system */
  215. #define MENU_KILL              0x28      /* kill/delete file in area */
  216. #define MENU_READFILE          0x29      /* read a textfile in file area */
  217. #define MENU_DOWNLOAD_FILE     0x2a      /* download 1 file from area */
  218. #define MENU_MOVEFILES         0x2b      /* move files to another area */
  219.  
  220. #define MENU_SHOWFILE          0x30      /* show an ansi/ascii file */
  221. #define MENU_SHOWHOT           0x31      /* show an ansi/ascii file with active keys */
  222. #define MENU_SHOWWAIT          0x32      /* show an ansi/ascii file with wait for Enter */
  223. #define MENU_QUESTION          0x33      /* show a questionaire file */
  224. #define MENU_QUOTE             0x34      /* show a "random" quote from file */
  225.  
  226. #define MENU_CITY              0x40      /* change users city/state */
  227. #define MENU_PASSWORD          0x41      /* change users password */
  228. #define MENU_CLS               0x42      /* toggle users cls state */
  229. #define MENU_MORE              0x43      /* toggle users more state */
  230. #define MENU_SCREENLEN         0x44      /* change users screen len */
  231. #define MENU_ANSI              0x45      /* toggle ansi on/off */
  232. #define MENU_EDITOR            0x46      /* toggle between line and full editor */
  233. #define MENU_EXPERT            0x47      /* toggle between novice and expert mode */
  234. #define MENU_HOMEPHONE         0x48      /* change home phone number */
  235. #define MENU_DATAPHONE         0x49      /* change data phone number */
  236.  
  237. #define MENU_ADENTER           0x50      /* enter an advertisement */
  238. #define MENU_ADREAD            0x51      /* read advertisements */
  239. #define MENU_ADSCAN            0x52      /* scan advertisments */
  240.  
  241. #define MENU_NEWPRIV           0x60      /* set a new privilege */
  242. #define MENU_UPTIME            0x61      /* raise the time of the user x minutes */
  243. #define MENU_DOWNTIME          0x62      /* drop the time of the user x minutes */
  244. #define MENU_ADDFLAGS          0x63      /* add flags to user's flags */
  245. #define MENU_DELFLAGS          0x64      /* delete flags to user's flags */
  246. #define MENU_SETTIME           0x65      /* set the time of the user to x minutes */
  247.  
  248. #define MENU_SETCOMB           0x70      /* set up combined boards */
  249. #define MENU_READCOMB          0x71      /* read a message in comb boards */
  250. #define MENU_SCANCOMB          0x72      /* scan messages in comb boards */
  251. #define MENU_QSCANCOMB         0x73      /* quickscan messages in comb boards */
  252. #define MENU_DLCOMB            0x74      /* download messages in comb boards */
  253.  
  254. #define MENU_RUN               0xf0      /* run a program from BBS */
  255. #define MENU_EXIT              0xf1      /* exit BBS with errorlevel */
  256. #define MENU_VERS              0xf2      /* show BBS version info */
  257. #define MENU_USAGE             0xf3      /* show users time usage and dl/ul info */
  258. #define MENU_YELL              0xf4      /* yell for sysop */
  259. #define MENU_CLOCK             0xf5      /* show clock for time synchronizing */
  260. #define MENU_CHECKMAIL         0xf6      /* check for mail addressed to user */
  261. #define MENU_USERUPGRADE       0xf7      /* sysop's user-upgrade option */
  262. #define MENU_LOGOFF            0xff      /* hangup and log off */
  263.  
  264. #define M_SIGNATURE            0xa442      /* proves file is actual menu file */
  265.  
  266.  
  267. /* these macros are for message board flags */
  268.  
  269. #define MSG_LOCAL_FILEATTACH   0x0
  270. #define MSG_LOCAL              0x1
  271. #define MSG_ECHO               0x2
  272. #define MSG_NET                0x4
  273. #define MSG_PRIVATE            0x8         /* messages are private */
  274. #define MSG_PUBLIC             0x10      /* messages are public */
  275. #define MSG_ALIAS              0x20      /* aliases are allowed */
  276.  
  277.  
  278. /* these macros are for message header flags */
  279.       
  280. #define MSGH_DELETED           0x1
  281. #define MSGH_PRIVATE           0x2
  282. #define MSGH_RECEIVED          0x4
  283. #define MSGH_NET_UNSENT        0x8      /* is unsent Netmail message */
  284. #define MSGH_NET               0x10     /* is Netmail */
  285. #define MSGH_ECHO_UNSENT       0x20     /* is unsent Echomail message */
  286. #define MSGH_ECHO              0x40     /* is echomail */
  287. #define MSGH_LOCAL_FILEATTACH  0x80     /* is local fileattach */
  288.  
  289. #define NET_KILLSENT           0x100    /* kill/sent netmail */
  290. #define NET_SENT               0x200    /* netmail sent */
  291. #define NET_FILEATTACH         0x400    /* file(s) attached */
  292. #define NET_CRASH              0x800    /* crashmail */
  293. #define NET_RECEIPT_REQ        0x1000   /* receipt requested */
  294. #define NET_AUDIT_REQ          0x2000   /* audit request */
  295. #define NET_RECEIPT            0x4000   /* return receipt */
  296.  
  297.  
  298. /* these macros are for advertisement board header flags */
  299.  
  300. #define ADH_DELETED            0x1
  301. #define ADH_REPLIES            0x2
  302.  
  303.  
  304. /* color macros */
  305.  
  306. #define BLACK                  0
  307. #define BLUE                   1
  308. #define GREEN                  2
  309. #define CYAN                   3
  310. #define RED                    4
  311. #define MAGENTA                5
  312. #define BROWN                  6
  313. #define WHITE                  7
  314. #define BRIGHT                 8
  315. #define BLINK                  0x80
  316. #define ON_BLACK               0x0
  317. #define ON_BLUE                0x10
  318. #define ON_GREEN               0x20
  319. #define ON_CYAN                0x30
  320. #define ON_RED                 0x40
  321. #define ON_MAGENTA             0x50
  322. #define ON_BROWN               0x60
  323. #define ON_WHITE               0x70
  324.  
  325. /* Values for flags in Version 6 nodelist */
  326.  
  327. #define NL_HUB                 0x1
  328. #define NL_HOST                0x2
  329. #define NL_REGION              0x4
  330. #define NL_ZONE                0x8
  331. #define NL_CM                  0x10
  332.  
  333.  
  334. /* these macros are for user flags */
  335.  
  336. #define UF_A                  0x1
  337. #define UF_B                  0x2
  338. #define UF_C                  0x4
  339. #define UF_D                  0x8
  340. #define UF_E                  0x10
  341. #define UF_F                  0x20
  342. #define UF_G                  0x40
  343. #define UF_H                  0x80
  344. #define UF_I                  0x100
  345. #define UF_J                  0x200
  346. #define UF_K                  0x400
  347. #define UF_L                  0x800
  348. #define UF_M                  0x1000
  349. #define UF_N                  0x2000
  350. #define UF_O                  0x4000
  351. #define UF_P                  0x8000
  352.  
  353.  
  354.  
  355. struct user
  356.    {
  357.    char user_name[41];
  358.    char user_password[16];
  359.    char user_city[31];
  360.    char user_home[15];         /* users home number */
  361.    char user_data[15];         /* users data/business number */
  362.    unsigned char user_priv;    /* users privilege level */
  363.    int user_uflags;            /* version 1.02 added 16 flags */
  364.    char user_screenlen;        /* length of users screen in lines */
  365.    int user_credit;            /* credit in cents for fidomail */
  366.    int user_flags;             /* bit mapped flags for options */
  367.  
  368.    int user_firstdate;         /* first date user called */
  369.    int user_lastdate;          /* last date called */
  370.    int user_lasttime;          /* last time called */
  371.    int user_calls;             /* number of calls to the BBS */
  372.    int user_timeused;          /* amount of time used for the day (minutes) */
  373.  
  374.    int user_upload;            /* number of uploads */
  375.    long user_uploadbytes;      /* number of bytes uploaded */
  376.    int user_dnload;            /* number of downloads */
  377.    long user_dnloadbytes;      /* number of bytes downloaded */
  378.  
  379.    char user_reserved[4];      /* reserved for later use */
  380.    };
  381.  
  382.  
  383. struct prompt
  384.    {
  385.    int prompt_sig;               /* signiture for valid menu file 0xa442 */
  386.    char prompt_color;
  387.    char prompt_hilite;
  388.    char prompt_string[56];       /* string to show */
  389.    };
  390.  
  391.  
  392. struct menu
  393.    {
  394.    int menu_number;            /* line number */
  395.    unsigned char menu_type;    /* type of choice */
  396.    char menu_key;              /* key to initiate choice */
  397.    unsigned char menu_priv;    /* user priv to see/use choice */
  398.    int menu_flags;             /* version 1.02 added 16 flags */
  399.    char menu_auto;             /* automatic execution if true */
  400.    char menu_color;            /* color of choice */
  401.    char menu_hilite;           /* color of hilight */
  402.    char menu_expert;           /* if true show when expert mode is on */
  403.    char menu_line[71];         /* line to show on screen */
  404.    char menu_data[71];         /* data line for menu option */
  405.    char menu_deleted;
  406.    };
  407.  
  408.  
  409. struct cfg
  410.    {
  411.    int cfg_baud;               /* maximum baud rate */
  412.    int cfg_port;               /* port number */
  413.    char cfg_init[61];          /* modem initialization string */
  414.    char cfg_resp[21];          /* normal modem response string */
  415.    char cfg_resp3[21];         /* 300 baud response */
  416.    char cfg_resp12[21];        /* 1200 baud response */
  417.    char cfg_resp24[21];        /* 2400 baud response */
  418.    char cfg_resp48[21];        /* 4800 baud response */
  419.    char cfg_resp96[21];        /* 9600 baud response */
  420.    char cfg_resp192[21];       /* 19200 baud response */
  421.    char cfg_ring[21];          /* ring response */
  422.    char cfg_answer[21];        /* answer string */
  423.    char cfg_hangup[21];        /* hangup string */
  424.    char cfg_busy[21];          /* offhook string */
  425.    int cfg_flags;              /* flags for setup */
  426.  
  427.    int cfg_minbaud;            /* minimum connect rate allowd on BBS */
  428.    int cfg_ansibaud;           /* minimum baud for ansi */
  429.    int cfg_dlstart;            /* start time for downloads */
  430.    int cfg_dlstop;             /* stop time for downloads */
  431.  
  432.    int cfg_zone;
  433.    int cfg_net;
  434.    int cfg_node;
  435.    int cfg_akazone[5];
  436.    int cfg_akanet[5];
  437.    int cfg_akanode[5];
  438.  
  439.    char cfg_sysopname[41];     /* sysop's name */
  440.    char cfg_bbsname[61];       /* BBS name */
  441.    char cfg_origin[66];        /* origin line */
  442.    char cfg_menupath[61];      /* path to menu files */
  443.    char cfg_screenpath[61];    /* path to screen files */
  444.    char cfg_nodepath[61];      /* path to nodelist */
  445.    char cfg_fapath[61];        /* path to local fileattaches */
  446.  
  447.    char cfg_netpath[61];       /* path for net messages */
  448.    char cfg_inboundpath[61];   /* path for inbound message pkts */
  449.    char cfg_outboundpath[61];  /* path for outbound message pkts */
  450.    char cfg_packetpath[61];    /* path for unpacking message pkts */
  451.    char cfg_badmsgpath[61];    /* path for placing bad messages */
  452.    char cfg_unarc[61];         /* command for unarcing ARCed files */
  453.    char cfg_unzip[61];         /* command for unarcing ZIPped files */
  454.    char cfg_unzoo[61];         /* command for unarcing ZOOed files */
  455.    char cfg_unlzh[61];         /* command for unarcing LZHed files */
  456.    char cfg_arc[61];           /* command for arcing ARCed files */
  457.    char cfg_zip[61];           /* command for arcing ZIPped files */
  458.    char cfg_zoo[61];           /* command for arcing ZOOed files */
  459.    char cfg_lzh[61];           /* command for arcing LZHed files */
  460.  
  461.    unsigned char cfg_newpriv;  /* priv level of new user */
  462.    int user_newflags;          /* version 1.02 added 16 flags */
  463.    int cfg_newcredit;          /* credit level of new user */
  464.    int cfg_newtime;            /* logon time in mins for newuser */
  465.    char cfg_askhome;           /* ask for home phone */
  466.    char cfg_askdata;           /* ask for data phone */
  467.  
  468.    char cfg_ansi;              /* use ansi on local console */
  469.    char cfg_direct;            /* use direct screen writes? */
  470.    char cfg_snow;              /* use snow checking on screen writes */
  471.    char cfg_pwdtries;          /* number of attempts to get password */
  472.    char cfg_inactive;          /* time before hanging up for inactivity */
  473.    char cfg_yells;             /* number of yells per session */
  474.    char cfg_yelltime;          /* number of seconds for yell bell */
  475.    int cfg_yellstart;          /* start time for yell-bell */
  476.    int cfg_yellstop;           /* stop time for yell-bell */
  477.    };
  478.  
  479.  
  480. struct msg
  481.    {
  482.    int msg_number;               /* message board number */
  483.    char msg_areaname[41];        /* message area name */
  484.    char msg_flags;               /* message area flags */
  485.    unsigned char msg_readpriv;
  486.    unsigned char msg_writepriv;
  487.    unsigned char msg_sysoppriv;
  488.    char msg_origin[66];          /* special origin line for this if echomail area */
  489.    char msg_deleted;             /* true if deleted */
  490.    };
  491.  
  492.  
  493. struct file
  494.    {
  495.    int file_number;              /* file board number */
  496.    char file_areaname[41];       /* file area name */
  497.    char file_pathname[61];       /* path to file area */
  498.    char file_descname[61];       /* if set, this is the path to files.bbs */
  499.    unsigned char file_priv;      /* priv level to search this area */
  500.    char file_deleted;            /* true if deleted */
  501.    };
  502.  
  503.  
  504. struct evt
  505.    {
  506.    char evt_enabled;             /* true if enabled */
  507.    char evt_forced;              /* true if forced event */
  508.    char evt_days;                /* 0-S-M-T-W-T-F-S */
  509.    unsigned int evt_time;        /* encoded time to run */
  510.    char evt_errorlevel;
  511.    char evt_title[21];           /* optional name for event */
  512.    char evt_deleted;             /* true if deleted */
  513.    };
  514.  
  515.  
  516. struct msgh      /* systemwide message number is ((offset/sizeof(struct msgh)) + 1) -- 0 is invalid systemwide message */
  517.    {
  518.    int msgh_area;               /* area number of message */
  519.    int msgh_number;             /* message number int that area! */
  520.    char msgh_to[41];            /* addressee of message */
  521.    char msgh_from[41];
  522.    char msgh_subject[71];
  523.    int msgh_date;
  524.    int msgh_time;
  525.    int msgh_flags;               /* net and message flags */
  526.    int msgh_szone;
  527.    int msgh_snet;
  528.    int msgh_snode;
  529.    int msgh_dzone;
  530.    int msgh_dnet;
  531.    int msgh_dnode;
  532.    int msgh_cost;
  533.    int msgh_prev;               /* previous message link - systemwide message number */
  534.    int msgh_next;               /* next message link - systemwide message number */
  535.    long msgh_offset;            /* start offset of message */
  536.    long msgh_length;            /* message length in bytes */
  537.    };
  538.  
  539.  
  540. struct mdata
  541.    {
  542.    int mdata_msgs;              /* total number of messages */
  543.    int mdata_del;               /* total number of deleted messages */
  544.    };
  545.  
  546.  
  547. struct mc      /* message counts by area */
  548.    {
  549.    int mc_area;
  550.    int mc_msgs;
  551.    };
  552.  
  553.  
  554. struct mlink
  555.    {
  556.    int mlink_area;
  557.    int mlink_number;        /* number of the message in that area! */
  558.    int mlink_flags;         /* a copy of the message flags */
  559.    int mlink_cksum;         /* a checksum on the uppercased TO: person's name */
  560.    };
  561.  
  562.  
  563. struct adh      /* header for advertisements */
  564.    {
  565.    char adh_from[41];
  566.    char adh_subject[71];
  567.    int adh_date;
  568.    int adh_time;
  569.    int adh_killdate;
  570.    int adh_flags;               /* ad flags */
  571.    long adh_prev;               /* previous ad header */
  572.    long adh_next;               /* next ad header */
  573.    long adh_length;             /* ad length in bytes */
  574.    };
  575.  
  576.  
  577. struct m
  578.    {
  579.    char m_name[10];            /* menu's name */
  580.    struct prompt m_prompt;
  581.    struct menu **m_lines;
  582.    int m_maxlines;                 /* number of allocated menu lines */
  583.    int m_curlines;                 /* number of menu lines */
  584.    };
  585.  
  586.  
  587. struct ui      /* User-info structure */
  588.    {
  589.    char ui_name[41];            /* user's name */
  590.    int ui_date;                 /* date user logged in */
  591.    int ui_time;                 /* time user logged in */
  592.    int ui_baud;                 /* baud rate user logged in at */
  593.    int ui_online;               /* time user spent online in minutes */
  594.    int ui_msgread;              /* number of messages user read */
  595.    int ui_msgposted;            /* number of messages user posted */
  596.    int ui_upload;               /* number of uploads */
  597.    long ui_uploadbytes;         /* number of bytes uploaded */
  598.    int ui_dnload;               /* number of downloads */
  599.    long ui_dnloadbytes;         /* number of bytes downloaded */
  600.    };
  601.  
  602.  
  603. struct nl         /* version 6 nodelist entry */
  604.    {
  605.    int nl_net;
  606.    int nl_node;
  607.    int nl_cost;
  608.    char nl_bbsname[34];
  609.    char nl_phone[40];
  610.    char nl_city[30];
  611.    char nl_pwd[8];
  612.    int nl_realcost;
  613.    int nl_hub;
  614.    char nl_baud;
  615.    char nl_modemtype;
  616.    int nl_flags;
  617.    int nl_waste;
  618.    };
  619.  
  620.  
  621. struct nlix         /* version 6 nodelist index */
  622.    {
  623.    int nlix_node;
  624.    int nlix_net;
  625.    };
  626.  
  627.  
  628. struct qh          /* quote file header! */
  629.    {
  630.    char qh_sig[14];    /* must be the words "Simplex Quote\0" */
  631.    int qh_lines;       /* total number of lines */
  632.    };
  633.  
  634. The quote file header is followed by qh_lines * sizeof(long) each
  635. containing the offset to the beginning of the respective quote line. 
  636. Each quote line follows and is a NUL ('\0') terminated string of 512
  637. characters or less.
  638.  
  639.  
  640.  
  641. /* total number of bytes for combined area mapping (9999 x 1 bit each) */
  642.  
  643. #define COMB_AREA               1250
  644.  
  645. struct comb            /* combined message board structure */
  646.    {
  647.    int comb_user;            /* user number */
  648.    char comb_areas[COMB_AREA];
  649.    };
  650.  
  651. The combined message board file contains an entry for each user who has
  652. set up combined areas.  The user is identified by his/her user number. 
  653. The areas are flagged as on or off if the respective flag for the
  654. message area is set.  The byte where a specific flag is located for a
  655. specific area can be retrieved by: comb_areas[message_area >> 3].  The
  656. specific bit can be masked by: 1 << (message_area % 8).
  657.  
  658.