1 /* 2 ATP QWK MAIL READER FOR READING AND REPLYING TO QWK MAIL PACKETS. 3 Copyright (C) 1992, 1993, 1997 Thomas McWilliams 4 Copyright (C) 1990 Rene Cougnenc 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 20 */ 21 22 /* 23 qlib.h 24 */ 25 26 #ifndef _ATP_QLIB_H 27 #define _ATP_QLIB_H 1 28 29 #include "atptypes.h" 30 31 /* contents of qwk packets */ 32 #define MSG_FILE "messages.dat" /* Message filename prepared by Qmail */ 33 #define CNTRL_FILE "control.dat" /* List of conferences by Qmail */ 34 #define DOORID "door.id" /* Info for the BBS QWK door */ 35 #define NEWFILES "newfiles.dat" /* List of new files by Qmail */ 36 #define WELCOME "welcome" /* 1st Screen of te BBS */ 37 #define NEWS "news" /* news file, ascii mode */ 38 #define TAGFILE "taglines.atp" /* taglines file */ 39 #define PERS_CONF 9000 /* Conference number for personal mail*/ 40 #define REPL_CONF 9001 /* Conference number for replies */ 41 #define PCONF_IDX LastConf 42 #define RCONF_IDX (LastConf-1) 43 #define t_PCONF_IDX t_LastConf 44 #define t_RCONF_IDX (t_LastConf-1) 45 #define VIRGINDX -1L /* Index.LastRead flag for virgin index */ 46 47 /* message header constants */ 48 #define BLKSIZE 128 49 #define HDRSIZE 128 50 #define HStatus 0 51 #define HNumMsg 1 52 #define HConfNum 1 53 #define HMsgDate 8 54 #define HMsgTime 16 55 #define HForWhom 21 56 #define HAuthor 46 57 #define HSubject 71 58 #define HPassWrd 96 59 #define HRefMsg 108 60 #define HSizeMsg 116 61 #define HMsgActiv 122 62 #define HBinConfN 123 63 #define HUnused1 125 64 #define HUnused2 126 65 #define HNetTag 127 66 67 #include "editline/edpublic.h" 68 69 #endif /* qlib.h */ 70 71 /* unused below */ 72 #if 0 73 /* note that these structures are for reference purposes only */ 74 struct MsgHeaderType { /* received message header structure */ 75 byte Status, /* */ 76 NumMsg[7], /* Numero du message,envoi = conf ! */ 77 MsgDate[8], /* mm-dd-yy */ 78 MsgTime[5], /* HH:MM */ 79 ForWhom[25], /* Destinataire */ 80 Author[25], /* Nous mme... */ 81 Subject[25], /* */ 82 PassWord[12], /* Si sender ou group password */ 83 RefMsg[8], /* Message rfrenc */ 84 SizeMsg[6], /* en ascii, nb blocs de 128 bytes */ 85 MsgActive, /* 0xE1 = active 0xE2 = inactive */ 86 BinConfN[2], /* 16 bit unsigned binary word */ 87 Unused1, /* space */ 88 Unused2, /* space */ 89 NetTag; /* space */ 90 }; 91 92 struct QmailRepType { /* send message header structure i */ 93 byte Status; /* '+' = private ' ' = public */ 94 byte ConfNum[7]; /* Numero de la conference concerne */ 95 byte MsgDate[13]; /* mm-dd-yyHH:MM */ 96 byte ForWhom[25]; /* Destinataire */ 97 byte Author[25]; /* Nous mme... */ 98 byte Subject[25]; /* */ 99 byte PassWord[12]; /* Si sender ou group password */ 100 byte RefMsg[8]; /* Message rfrenc */ 101 byte SizeMsg[6]; /* en ascii, nb blocs de 128 bytes */ 102 byte MsgActive; /* 0xE1 = active */ 103 byte BinConfN[2]; /* 16 bit conference number binary. */ 104 byte Unused1; /* space */ 105 byte Unused2; /* space */ 106 byte NetTag; /* space */ 107 }; 108 #endif 109