home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / pcmail / part07 / Implementation < prev    next >
Encoding:
Text File  |  1989-02-03  |  1.4 KB  |  48 lines

  1. MESSAGE DATA BASE
  2.  
  3. The message data base resides in the mail  spool  directory  (de-
  4. fined  with  the MAILDIR environment variable). There are various
  5. classes of message files:
  6.  
  7.  - mail received from the network
  8.  
  9.  - mail ready to send over the network
  10.  
  11.  - messages in preparation
  12.  
  13. In addition there are administrative files (LOGFILE,  alias  data
  14. base and communications parameters).
  15.  
  16. Each message takes two files: a data file (with the  actual  mes-
  17. sage)  and a meta file (with originator or destination addresses,
  18. or a one-line summary in case of a message in preparation).
  19.  
  20. Data/meta file names are constructed by concatenating  a  single-
  21. character prefix with a five-digit sequence number. Corresponding
  22. data and meta files have the same  sequence  number.  The  prefix
  23. characters are:
  24.  
  25.  E message in preparation
  26.  C description of message
  27.  
  28.  N message received from the net
  29.  H originator address in case of an unread message
  30.  O originator address in case of already read message
  31.  
  32.  D message ready to be sent over the net
  33.  X destination of that message.
  34.  
  35. Administrative files are
  36.  
  37.  LOGFILE transaction log
  38.  s00000 communications parameters
  39.  a00000 alias data base
  40.  
  41. All files in the mail directory are ordinary text files,  with  a
  42. possible  exception  for the message in preparation (this depends
  43. on the editor being used).
  44.  
  45. Files in the  mail  directory  are  normally  write-protected  to
  46. prevent accidents.
  47.  
  48.