home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / n / newsflash / !FileBase / !NewsFlash / Docs / Developers / Structures / MailBase < prev    next >
Encoding:
Text File  |  1995-05-31  |  1.9 KB  |  79 lines

  1. Last update: 30/5/95
  2.  
  3. NewsFlash message base details:
  4.  
  5. Files:
  6.  
  7. MailBase       - 128 byte blocks for each message
  8. MailAreas      - 64 byte blocks for each message area
  9.  
  10. Format of message base:
  11.  
  12. &00   Number of messages in message base
  13. &04   Next message code
  14. &08   Number of deleted message
  15. &0C   First deleted message (0 for none)
  16. &10   Last deleted message (0 for none)
  17.  
  18. &14   Message blocks:
  19.  
  20. Message blocks (128 bytes each)
  21.  
  22. &00   Previous message in this message area (0 for none)
  23. &04   Next message in this message area (0 for none)
  24. &08   Message code
  25. &0C   Length of message
  26. &10   5-byte Time from 1900 when written
  27. &15   Flags:
  28.  
  29.       Bit 0 - File attached
  30.       Bit 1 - Deleted (virtual)
  31.       Bit 2 - Message has been deleted (actual)
  32.       Bit 3 - Read
  33.       Bit 4 - Downloaded
  34.       Bit 5 - Scanned
  35.       
  36. &16   16 bit word.. # of times read..
  37.       
  38. &18   Message area
  39. &1C   Message type:
  40.  
  41.       0 - Local private
  42.       1 - Netmail
  43.       2 - Echo
  44.       3 - Local echo
  45.       
  46. &20   Message data - depends on message type (&1C):
  47.  
  48. For 'Local private', type 0..
  49.  
  50. &20   User number of author
  51. &24   User number of recipient
  52. &28   File # of file attached (if any)
  53. &2C   Reserved..
  54. &30   Subject                          (80 bytes)
  55.  
  56. For 'Netmail', type 1
  57.  
  58. &20   User name of author              (20 bytes)
  59. &34   Name of recipient                (20 bytes)
  60. &48   Subject                          (20 bytes)
  61. &5C   Sender address (in ASCII)..      (16 bytes)
  62. &6C   Destination address (in ASCII).. (16 bytes)
  63. &7C   File # of file attached (if any)
  64.  
  65. For 'Echo', type 2
  66.  
  67. &20   User name of author              (24 bytes)
  68. &38   Name of recipient                (24 bytes)
  69. &50   Subject                          (32 bytes)
  70. &70   Sender address                   (16 bytes)
  71.  
  72. For 'Local Echo', type 3
  73.  
  74. &20   User number of author
  75. &24   User number of recipient
  76. &28   Reserved..
  77. &2C   Reserved..
  78. &30   Subject                          (80 bytes)
  79.