TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francisco Caselin Nava
from: Francois Thunus
date: 1996-09-06 21:08:00
subject: Headers of ..MSG Files

Hello Francisco!

05 Sep 96 17:12, Francisco Caselin Nava wrote to All:

 FCN> Somebody knows the format of the headers and structure of
 FCN> *.MSG files?

>----- Begin -----

(*
**  fdmsg.inc
**
**  Structures for .MSG files
**
**  Copyright 1993 Joaquim Homrighausen; All rights reserved.
**
**  Last revised: 93-06-21                    FrontDoor 2.11+
**
**  -------------------------------------------------------------------------
**  This information is not necessarily final and is subject to change at any
**  given time without further notice
**  -------------------------------------------------------------------------
*)

(*
**  FTS-1 (Opus 1.03 compatible) message header definition used by FrontDoor,
**  and TosScan among other products to create .MSG files. "!!" indicates
**  that the bit is not used by FrontDoor.
*)
#define MSGPRIVATE        0x0001                             {Private message}
#define MSGCRASH          0x0002                               {High priority}
#define MSGREAD           0x0004                           {Read by addressee}
#define MSGSENT           0x0008                               {Has been sent}
#define MSGFILE           0x0010                        {File attached to msg}
#define MSGTRANSIT        0x0020                                  {In transit}
#define MSGORPHAN         0x0040                                {Unknown node}
#define MSGKILL           0x0080                          {Kill after mailing}
#define MSGLOCAL          0x0100                    {Message was entered here}
#define MSGHOLD           0x0200                             {Hold for pickup}
#define MSGUNUSED         0x0400                                          {!!}
#define MSGFREQ           0x0800                                {File request}
#define MSGRRREQ          0x1000                   {Return receipt request !!}
#define MSGISRR           0x2000                        {Is return receipt !!}
#define MSGAREQ           0x4000                            {Audit request !!}
#define MSGFUPDREQ        0x8000                      {File update request !!}

    { Message header, one per message }

    { All strings are NUL terminated, a'la C ASCIIZ strings. }

typedef struct
    {
    char    FromUser[36],                                  {Name in By: field}
            ToUser[36],                                    {Name in To: field}
            Subject[72],                                   {Name in Re: field}
            Date[20];                                   {ASCIIz creation date}
    unsigned short int
            TimesRead,                          {Number of times message read}
            DestNode,                                       {Destination node}
            OrigNode,                                       {Originating node}
            Cost,                                       {Cost to send message}
            OrigNet,                                         {Originating net}
            DestNet;                                         {Destination net}
    unsigned long
            DateWritten,                            {Date message was written}
            DateArrived;                          {Date message was read/sent}
    unsigned short int
            ReplyTo,                            {This is a reply to
"ReplyTo"}
            Attr,                                  {Attribute bits, see above}
            ReplyNext;                                  {Next reply in thread}
    }
    FIDOMSG;

(*
**  The "DateWritten" and "DateArrived" fields are
packed DOS dates with
**  the low word and high word exchanged as per the format used by Opus
**  1.03.
*)

(* end of file "fdmsg.inc" *)

>-----  End  -----

>----- Begin -----

/*
**  fdmsg.h
**
**  Structures for .MSG files
**
**  Copyright 1993 Joaquim Homrighausen; All rights reserved.
**
**  Last revised: 93-06-21                    FrontDoor 2.11+
**
**  -------------------------------------------------------------------------
**  This information is not necessarily final and is subject to change at any
**  given time without further notice
**  -------------------------------------------------------------------------
*/
#ifndef __FDMSG_H__
#define __FDMSG_H__

#ifdef __cplusplus
extern "C" {
#endif

/*
**  FTS-1 (Opus 1.03 compatible) message header definition used by FrontDoor,
**  and TosScan among other products to create .MSG files. "!!" indicates
**  that the bit is not used by FrontDoor.
*/
#define MSGPRIVATE      0x0001                             /*Private message*/
#define MSGCRASH        0x0002                               /*High priority*/
#define MSGREAD         0x0004                           /*Read by addressee*/
#define MSGSENT         0x0008                               /*Has been sent*/
#define MSGFILE         0x0010                        /*File attached to msg*/
#define MSGTRANSIT      0x0020                                  /*In transit*/
#define MSGORPHAN       0x0040                                /*Unknown node*/
#define MSGKILL         0x0080                          /*Kill after mailing*/
#define MSGLOCAL        0x0100                    /*Message was entered here*/
#define MSGHOLD         0x0200                             /*Hold for pickup*/
#define MSGUNUSED       0x0400                                          /*!!*/
#define MSGFREQ         0x0800                                /*File request*/
#define MSGRRREQ        0x1000                   /*Return receipt request !!*/
#define MSGISRR         0x2000                        /*Is return receipt !!*/
#define MSGAREQ         0x4000                            /*Audit request !!*/
#define MSGFUPDREQ      0x8000                      /*File update request !!*/

    /* Message header, one per message */

typedef struct
    {
    char    FromUser[36],                                /*Name in By: field*/
            ToUser[36],                                  /*Name in To: field*/
            Subject[72],                                 /*Name in Re: field*/
            Date[20];                                 /*ASCIIz creation date*/
    unsigned short int
            TimesRead,                        /*Number of times message read*/
            DestNode,                                     /*Destination node*/
            OrigNode,                                     /*Originating node*/
            Cost,                                     /*Cost to send message*/
            OrigNet,                                       /*Originating net*/
            DestNet;                                       /*Destination net*/
    unsigned long
            DateWritten,                          /*Date message was written*/
            DateArrived;                        /*Date message was read/sent*/
    unsigned short int
            ReplyTo,                          /*This is a reply to
"ReplyTo"*/
            Attr,                                /*Attribute bits, see above*/
            ReplyNext;                                /*Next reply in thread*/
    }
    FIDOMSG;

/*
**  The "DateWritten" and "DateArrived" fields are
packed DOS dates with
**  the low word and high word exchanged as per the format used by Opus
**  1.03.
*/

#ifdef __cplusplus
}
#endif
#endif

/* end of file "fdmsg.h" */

>-----  End  -----

ya que no decias en que... aqui estan los dos mas importantes...
suerte.


                             -= Francois =-
                       Thunus{at}Club.TeleMatique.org
                      http://www.telematique.org/ft
We're free people. We belong to no one.

--- GoldED 2.50+
* Origin: Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 270/25 170/400 396/1 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™.