home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / dec / 4145 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  2.4 KB

  1. Xref: sparky comp.sys.dec:4145 comp.os.vms:12696 vmsnet.internals:1108
  2. Path: sparky!uunet!gatech!ukma!vlsi!wkuvx1.bitnet!goathunter
  3. From: goathunter@wkuvx1.bitnet
  4. Newsgroups: comp.sys.dec,comp.os.vms,vmsnet.internals
  5. Subject: Here is the VAX/VMS mail file format
  6. Message-ID: <1992Jul23.063646.1866@wkuvx1.bitnet>
  7. Date: 23 Jul 92 06:36:45 CDT
  8. Organization: Western Kentucky University, Bowling Green, KY
  9. Lines: 69
  10.  
  11. >I need to know if there is a way, on a Unix machine, to read/convert a
  12. >mail.mai file which was ftp'd from a VAX machine.
  13. [...]
  14. >With that in mind, what do you recommend? I see converting the file on
  15. >the receiving Unix machine as the best option, but I'll need either a
  16. >converter program/script, or information about the .mai file format so
  17. >I can write one myself. Any help will be greatly appreciated!!
  18. >
  19. I had to figure it all out by hand several years ago (with VMS
  20. v4.6---before callable mail arrived).  When I finally had access to
  21. the source listings, I corrected my format description. It follows
  22. below.  I'm 99% sure that it's still accurate for VMS v5.5. Note: this
  23. is the format of the MAIL.MAI file, not the VMSMAIL_PROFILE.DATA file.
  24.  
  25. All information comes from MAILDEF.SDL in VMS V5.0 micro-fiche
  26.  
  27. Mail message header record
  28.  
  29. Quadword:
  30.     DATIM        Date/time message received
  31.  
  32. (Date/times with high quadword 0 are reserved as info records)
  33.     1    LASTREAD    Date/time of last read message
  34.     2    WASTENAME    Name of wastebasket folder
  35.     3    FILEINFO    File status information
  36.     4    MW        Mailwatch info record
  37.     5    NEWMSG        New message information
  38. Byte:
  39.     FILKEYLEN    Length of the filing key
  40. 39 bytes:
  41.     FILEKEY        Filing key
  42.  
  43. Word:
  44.     Flags:
  45.     NEWMSG        This is a new message
  46.     REPLIED        This message has been replied to
  47.     SKIP1        Skip a bit
  48.     EXTMSG        Message text in external file
  49.     EXTFNF        External file not found
  50.     SYSMSG        Message text in system file
  51.     EXTNSTD        External foreign type message
  52.     MARKED        This message has been marked
  53.     SKIP2        Skip recmode flag
  54. Byte
  55.     FLAGSIZ        Size of flag string if ASCII
  56. Longword
  57.     FLAGVAL        Value of /FLAG=
  58. Byte
  59.     HDSPARE        Spare byte to align DATID
  60. Quadword
  61.     DATID        Key ID of data record
  62.  
  63.     MISCDAT        Start of variable data
  64.  
  65. Format:  type.w,size.w,data.w
  66.  
  67. 0    From
  68. 1    To
  69. 2    Subject
  70. 3    CC
  71. 4    Mailwatch info
  72. 5    Number of records in message
  73. 6    Message is in external file; this is spec
  74. 7    Security class
  75.  
  76. Hunter
  77. ------
  78. Hunter Goatley, VMS Systems Programmer, Western Kentucky University
  79. goathunter@WKUVX1.BITNET, 502-745-5251
  80.