home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / RDQWKSRC.ZIP / QMAIL.H < prev    next >
C/C++ Source or Header  |  1990-11-27  |  4KB  |  80 lines

  1. /*
  2.                         Specific Qmail stuff
  3. */
  4.  
  5. #define  call   goto        /* :-))                                  */
  6.  
  7. #ifndef BYTE_DECL
  8. typedef unsigned char byte ;
  9. #define BYTE_DECL
  10. #endif
  11.  
  12. /*--------- FILES RECEIVED in *.QWK.-- Warning : DOS is not case-sensitive */
  13.  
  14. #define MSG_FILE    "messages.dat" /* Message filename prepared by Qmail */
  15. #define CNTRL_FILE  "control.dat"  /* List of conferences by Qmail       */
  16. #define NEWFILES    "newfiles.dat" /* List of new files   by Qmail       */
  17. #define WELCOME     "welcome"      /* 1st Screen of te BBS               */
  18. #define WELCOMEG    "welcomeg"     /* 1st Screen, ansi mode              */
  19. #define NEWS        "news"         /* news file, ascii mode              */
  20. #define NEWSG       "newsg"        /* news file, ansi  mode              */
  21. #define MSG_EXT     ".msg"         /* Extension of reply file            */
  22.  
  23. /*-------------------------------------------------------------------------*/
  24.  
  25. typedef
  26. struct MsgHeaderType         /* RECEIVED MESSAGE HEADER STRUCTURE      */
  27.        {
  28.            byte Status        ,   /* ??? */
  29.                 NumMsg   [7 ] ,   /* Numero du message,envoi = conf !  */
  30.                 MsgDate  [8 ] ,   /* mm-dd-yy                          */
  31.                 MsgTime  [5 ] ,   /* HH:MM                             */
  32.                 ForWho   [25] ,   /* Destinataire                      */
  33.                 Author   [25] ,   /* Nous même...                      */
  34.                 Subject  [25] ,   /*                                   */
  35.                 PassWord [12] ,   /* Si sender ou group password       */
  36.                 RefMsg   [8 ] ,   /* Message référencé                 */
  37.                 SizeMsg  [6 ] ,   /* en ascii, nb blocs de 128 bytes   */
  38.                 Delete        ,   /* ???? = E1  (??????)               */
  39.                 Conference    ,   /* ???? = 00 ou 0A pour un envoi     */
  40.                 Read          ,   /* ???? = 0x00,0x20,0x05 parfois     */
  41.                 Nothing[3]    ;   /* ???? = 0x20, ou E, ou E*, etc !   */
  42.        } ;
  43.  
  44. typedef
  45. struct QmailRepType   /* SEND MESSAGE HEADER STRUCTURE. */
  46.        {
  47.            byte Status;            /* ??? */
  48.            byte ConfNum  [7] ;     /* Numero de la conférence concernée */
  49.            byte MsgDate  [13];     /* mm-dd-yyHH:MM                     */
  50.            byte ForWho   [25];     /* Destinataire                      */
  51.            byte Author   [25];     /* Nous même...                      */
  52.            byte Subject  [25];     /*                                   */
  53.            byte PassWord [12];     /* Si sender ou group password       */
  54.            byte RefMsg   [8] ;     /* Message référencé                 */
  55.            byte SizeMsg  [6] ;     /* en ascii, nb blocs de 128 bytes   */
  56.            byte Delete       ;     /* ????  = E1*/
  57.            byte Unknown2     ;     /* ???? = 00 ou 0A ou 04             */
  58.            byte Unknown3     ;     /* ???? = 00                         */
  59.            byte Unknown4     ;     /* ???? = SPACE                      */
  60.            byte Unknown5     ;     /* ???? = SPACE                      */
  61.            byte Unknown6     ;     /* ???? = 00                         */
  62.        } ;
  63.                         /* Variables used to read Control.dat         */
  64.  
  65. extern int LastConf ;
  66. extern int Security ;
  67. extern char BoardName[],
  68.      UserName [],
  69.      First    [],
  70.      City     [],
  71.      HomePhone[],
  72.      DataPhone[];
  73.  
  74.  
  75. extern char ConfName[MAXCONF][NAMCONF];extern  int ReadControl(char *Path);
  76. extern  int MkIndex(char *SrcDir,char *DestDir);
  77. extern  void WriteIndex(FILE *fx,int count,int Size,long Offset);
  78.  
  79. /*---------------------------- fin de qmail.h ---------------------------*/
  80.