| 1 |
<HTML> |
| 2 |
<HEAD> |
| 3 |
<TITLE>FORMAT of DIRMES.SYS</TITLE> |
| 4 |
</HEAD> |
| 5 |
<BODY BACKGROUND="/back_fbb.jpg"> |
| 6 |
<P> |
| 7 |
<IMG SRC="/fbb.gif" WIDTH="32" HEIGHT="32"> |
| 8 |
<H1 ALIGN=Center> |
| 9 |
DIRMES.SYS |
| 10 |
</H1> |
| 11 |
<P> |
| 12 |
<PRE> |
| 13 |
|
| 14 |
<BIG><B>DIRMES.SYS (\FBB\SYSTEM).</B></BIG> |
| 15 |
|
| 16 |
This binary file holds the information on all active messages. This file is |
| 17 |
very important and must not be edited or changed otherwise the list of the |
| 18 |
messages could be lost. This file can only be opened for reading. |
| 19 |
|
| 20 |
It is organized with records, each record containing information on a |
| 21 |
message. The first record of the file only contains the number of the last |
| 22 |
message. Never modify this file while the BBS is running. |
| 23 |
|
| 24 |
Structure of one record (C language) : |
| 25 |
|
| 26 |
#define NBBBS 80 |
| 27 |
#define NBMASK NBBBS/8 |
| 28 |
|
| 29 |
typedef struct { |
| 30 |
|
| 31 |
char type ; /* 1 Type of message (A,B,P,T) */ |
| 32 |
char status ; /* 1 Status of message ($,A,F,K,N,Y) */ |
| 33 |
long numero ; /* 4 Number of the message */ |
| 34 |
long taille ; /* 4 Size of message in characters */ |
| 35 |
long date ; /* 4 Date of message */ |
| 36 |
char bbsf[7] ; /* 7 Adjacent BBS giving the message */ |
| 37 |
char bbsv[41] ; /* 41 Route */ |
| 38 |
char exped[7] ; /* 7 Destination of the message */ |
| 39 |
char desti[7] ; /* 7 To field */ |
| 40 |
char bid[13] ; /* 13 BID or MID */ |
| 41 |
char titre[61] ; /* 61 Title of message */ |
| 42 |
char free[16] ; /* 16 Reserved bytes */ |
| 43 |
long datesd ; /* 4 Date of the message creation */ |
| 44 |
long datech ; /* 4 Date of last status change */ |
| 45 |
char fbbs[NBMASK] ; /* 10 Mask of BBSes to forward to */ |
| 46 |
char forw[NBMASK] ; /* 10 Mask of BBSes already forwarded */ |
| 47 |
|
| 48 |
} bullist ; /* 194 bytes = length of one record */ |
| 49 |
|
| 50 |
A null type of message (00 hex) invalidates the record. |
| 51 |
|
| 52 |
Dates are given as the number of seconds since january 1st, 1970 00:00. |
| 53 |
|
| 54 |
Masks are bit fields, number of bit corresponds to the number of the BBS in |
| 55 |
the BBS.SYS file. |
| 56 |
|
| 57 |
In C language, all strings are ended with a NULL (00 hex) character. |
| 58 |
|
| 59 |
|
| 60 |
<A HREF="doc.htm"><IMG SRC="/contents.gif" WIDTH="108" HEIGHT="28"></A> |
| 61 |
|
| 62 |
<A HREF="/"><IMG SRC="../button_home.gif" WIDTH="90" HEIGHT="29"></A> |
| 63 |
|
| 64 |
<FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT> |
| 65 |
|
| 66 |
</PRE> |
| 67 |
</BODY></HTML> |