TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Eric Rusk
from: Henk den Adel
date: 1996-12-11 11:17:26
subject: Pascal structures for FidoNet ..MSG

Hi Eric,

 ER> Does anyone have the Pascal structures for the FidoNet *.MSG file format?

In Fidonet news week 43-45 Damian Walker described the format of the header
and the 'rules' for the message body.

I do have the C structure, which you easily can convert into a Pascal
structure (I hope).

/* FTS-1 message structure */

struct fts1 {
   char    fromusername[36],
           tousername[36],
           subject[72],
           datetime[20];
   int     timesread,
           destnode,
           orignode,
           cost,
           orignet,
           destnet,
           destzone,
           origzone,
           destpoint,
           origpoint,
           replyto,
           attribute,
           nextreply;
} top;

This defines a structure named top of type fts1.

A char is a byte alike variable, used for storing characters.
fromusername[36] is an array of chars, length 36. The C convention for
storing data in the header is used: if in fromuseername "Eric
Rusk" is to be stored, the 'E' is in fromusername[0], fromusername[8]
contains a 'k'. fromusername[9] contains a character which ASCII value is
zero, i.e. not the same as '0', ascii value 48.

Type int is an signed integer value, 2 bytes in length.

{} is not comment as in Pascal!

More info (about 100 kB) can be found in the three editions of Fidonet news.


73 es cuagn,
 Henk

--- GoldED 2.50+
* Origin: Henks Toolbox, Mail only, +31 10 220 54 61 (2:286/415)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 286/415 4 700 280/801 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.