home *** CD-ROM | disk | FTP | other *** search
/ World of Ham Radio 1994 January / AMSOFT_1994.iso / packet / pbbs / cbbs / prog / mbmail.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-31  |  3.6 KB  |  107 lines

  1. /*  MBMAIL.H - 10/09/88  */
  2.  
  3. #define mb_version 9
  4.  
  5. extern char orgbbs[7], orgdate[7], orgmsg[6], orgtime[5]; 
  6.  
  7. extern char *mbfile, *mbbfile, *msgdir;
  8. extern int mfl, mflb;
  9.  
  10. extern char  *ufwd, *bfwd;
  11. extern short ufwdm, ufwdn, bfwdm, bfwdn;
  12. extern short tstaleb, tstalen, tstaleu;
  13. extern char  wpcall[ln_call];
  14.  
  15. /*  The list of calls to translate.  */
  16.  
  17. typedef struct XBBS_S
  18. {
  19.   char from[ln_call];
  20.   char to[ln_call];
  21.   struct XBBS_S *next;
  22. } XBBS;
  23.  
  24. extern XBBS *xbbs;
  25.  
  26. /*  The list of calls to hold messages for.  */
  27.  
  28. typedef struct HOLD_S
  29. {
  30.   char call[ln_call];
  31.   struct HOLD_S *next;
  32. } HOLD;
  33.  
  34. extern HOLD *hold;
  35.  
  36. /*  Prompts associated with message commands.  */
  37.  
  38. #define num_mm 13
  39. extern  char *mm[num_mm];
  40.  
  41. /*
  42.  *  Message header record.
  43.  */
  44.  
  45. #define m_read   0x01  /* Message has been read by recipient    */
  46. #define m_fwd    0x02  /* Message has been forwarded            */
  47. #define m_kill   0x04  /* Message marked for killing            */
  48. #define m_busy   0x08  /* Message busy                          */
  49.  
  50. #define m_noarc  0x10  /* Do not archive this message           */
  51. #define m_stale  0x20  /* Message unread and older than allowed */
  52. #define m_hold   0x40  /* Do not forward this message           */
  53. #define m_bull   0x80  /* This is a bulletin                    */
  54.  
  55. #define mhtitl 80      /* Length of title.                      */
  56. #define mmhsunu 12     /* Unused                                */
  57. #define mmesn 16       /* Number of calls in DIS list           */
  58.  
  59. typedef struct msg_hdr_s
  60. {
  61.   byte ext;           /* Header extension flag, or zero                  */
  62.   word rn;            /* Record number of this record                    */
  63.   word read;          /* # times the message has been read               */
  64.   word number;        /* Message number                                  */
  65.   word size;          /* Size in bytes                                   */
  66.   char type;          /* Message type                                    */
  67.   byte stat;          /* Message status, see bit definitions above       */
  68.   char to  [ln_call]; /* Destination call                                */
  69.   char from[ln_call]; /* Originator call                                 */
  70.   char bbs [ln_call]; /* Destination BBS, or distribution list           */
  71.   char date[ln_date]; /* Entry date                                      */
  72.   char time[ln_time]; /* Entry time                                      */
  73.   char bid[ln_bid];   /* Bulletin ID, if this is a bulletin              */
  74.   char title[mhtitl]; /* Title of message                                */
  75.  
  76.   char call[mmesn][ln_call]; /* Calls to send to                         */
  77.   byte flag[mmesn];          /* TRUE if need to send, FALSE if sent      */
  78.   byte count;                /* number of calls in list                  */
  79.  
  80.   char unu[mmhsunu];
  81. } MSG_HDR;
  82.  
  83.  
  84. /*
  85.  *  Mail file header record.
  86.  */
  87.  
  88. #define mfhsunu 231
  89.  
  90. typedef struct mail_hdr_s
  91. {
  92.   word next;          /* Next record to allocate         */
  93.   word first;         /* First message header record     */
  94.   word last;          /* Last message header record      */
  95.   word next_msg;      /* Next message number             */
  96.   word unt_msg;       /* next_msg at last untangle       */
  97.   byte version;       /* File format version number      */
  98.   word free;          /* Spare word for future use       */
  99.   word count;         /* Number of messages              */
  100.   char date[ln_date]; /* Date of last untangle           */
  101.   char time[ln_time]; /* Time of last untangle           */
  102.   char unu[mfhsunu];
  103. } MAIL_HDR;
  104.  
  105. extern MAIL_HDR *mfhs;
  106. extern MSG_HDR  *tmmhs;
  107.