1 /* 2 * SMAPI; Modified Squish MSGAPI 3 * 4 * Squish MSGAPI0 is copyright 1991 by Scott J. Dudley. All rights reserved. 5 * Modifications released to the public domain. 6 * 7 * Use of this file is subject to the restrictions contain in the Squish 8 * MSGAPI0 licence agreement. Please refer to licence.txt for complete 9 * details of the licencing restrictions. If you do not find the text 10 * of this agreement in licence.txt, or if you do not have this file, 11 * you should contact Scott Dudley at FidoNet node 1:249/106 or Internet 12 * e-mail Scott.Dudley@f106.n249.z1.fidonet.org. 13 * 14 * In no event should you proceed to use any of the source files in this 15 * archive without having accepted the terms of the MSGAPI0 licensing 16 * agreement, or such other agreement as you are able to reach with the 17 * author. 18 */ 19 20 #ifndef __OLD_MSG_H__ 21 #define __OLD_MSG_H__ 22 23 #include <huskylib/compiler.h> 24 #include <huskylib/cvtdate.h> 25 26 #include "msgapi.h" 27 28 /* OPUS message header structure */ 29 struct _omsg 30 { 31 byte from[36]; 32 byte to[36]; 33 byte subj[72]; 34 byte date[20]; /* Obsolete/unused ASCII date information */ 35 word times; /* FIDO<tm>: Number of times read */ 36 sword dest; /* Destination node */ 37 sword orig; /* Origination node number */ 38 word cost; /* Unit cost charged to send the message */ 39 40 sword orig_net; /* Origination network number */ 41 sword dest_net; /* Destination network number */ 42 43 /* 44 * A timestamp is a 32-bit integer in the UNIX flavor (ie. the number 45 * of seconds since midnight, January 1, 1970). Timestamps in messages 46 * are always Greenwich Mean Time (UTC), never local time. 47 * 48 * TE 05/27/98: I doubt that the comment above is true. The Opus 49 * timestamps are in the DOS date format, not inthe UNIX stamp format. 50 */ 51 52 struct _stamp date_written; /* When user wrote the msg */ 53 struct _stamp date_arrived; /* When msg arrived on-line */ 54 55 word reply; /* Current msg is a reply to this msg nr */ 56 word attr; /* Attribute (behavior) of the message */ 57 word up; /* Next message in the thread */ 58 }; 59 60 /* OPUS message header size (on .MSG file) */ 61 #define OMSG_SIZE 190 62 63 #endif 64