From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 1-FEB-1991 02:32:19.40 To: MRGATE::"ARISIA::EVERHART" CC: Subj: RE: Internal format of MAIL.MAI files Received: by crdgw1.ge.com (5.57/GE 1.80) id AA19565; Fri, 1 Feb 91 01:26:48 EST Message-Id: <9102010626.AA19565@crdgw1.ge.com> Received: From CUNYVM.CUNY.EDU by CRVAX.SRI.COM with TCP; Thu, 31 JAN 91 16:28:29 PST Received: from WKUVX1.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.2.2MX) with BSMTP id 6635; Thu, 31 Jan 91 19:29:03 EST Date: Thu, 31 Jan 91 07:44 CST From: "Hunter Goatley, Western Ky. University" Subject: RE: Internal format of MAIL.MAI files To: INFO-VAX@SRI.COM X-Vms-To: IN%"INFO-VAX@SRI.COM" "J.Lance Wilkinson" wrote: >In migrating from another vendor, I've been sucessful in recovering that >vendor's Email archival folders into a format from which I can extract >information. I'd like to take it one step further, and extract from these >folders and insert into VMS Mail folders. Obviously, I need to know what the >internal format of the .MAI files used by VMS Mail look like. > >What I'm looking for is the file structure (what types of records, what order >they appear in, indexes and keys) and the record structure(s) for the various >types of records. Admittedly, more questions might be raised by the answers >posted. The following information is valid for VMS V5.x. Hope this helps (if this is a second posting, my apologies---I goofed! 8-)) Hunter =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Hunter Goatley, VAX Systems Programmer E-mail: GOATHUNTER@WKUVX1.bitnet ACRS, Western Kentucky University Voice: 502-745-5251 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- All information comes from MAILDEF.SDL in VMS V5.0 micro-fiche Mail message header record Quadword: DATIM Date/time message received (Date/times with high quadword 0 are reserved as info records) 1 LASTREAD Date/time of last read message 2 WASTENAME Name of wastebasket folder 3 FILEINFO File status information 4 MW Mailwatch info record 5 NEWMSG New message information Byte: FILKEYLEN Length of the filing key 39 bytes: FILEKEY Filing key Word: Flags: NEWMSG This is a new message REPLIED This message has been replied to SKIP1 Skip a bit EXTMSG Message text in external file EXTFNF External file not found SYSMSG Message text in system file EXTNSTD External foreign type message MARKED This message has been marked SKIP2 Skip recmode flag Byte FLAGSIZ Size of flag string if ASCII Longword FLAGVAL Value of /FLAG= Byte HDSPARE Spare byte to align DATID Quadword DATID Key ID of data record MISCDAT Start of variable data Format: type.w,size.w,data.w 0 From 1 To 2 Subject 3 CC 4 Mailwatch info 5 Number of records in message 6 Message is in external file; this is spec 7 Security class VMSMAIL_PROFILE.DATA record 31 bytes USERNAME Username blank-filled Data (UPD_) Flags SELFSEND Send a copy to self on SEND SELFREPLY Send a copy to self on REPLY NOAUTOPURGE Don't autopurge on exit or ^Z SELFFORWARD Send a copy to self on FORWARD CCPROMPT Prompt for CC recipients Data - types Constants (begin with 1) MAIL New mail count FLAGS Flags DIRNAME Sub-directory name FWDNAME Forwarding name PERNAM Personal name MAILPLUS Mailplus cell TRANSPORT Default transport EDITOR Editor specification QUEUE Queue specification USER1 User defined USER2 User defined USER3 User defined FORM Default print form SPARE2 SPARE3 ----------------- End of message ------------------