[ 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> U Received: From CUNYVM.CUNY.EDU by CRVAX.SRI.COM with TCP; Thu, 31 JAN 91 16:28:29 PST v 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 CSTY From: "Hunter Goatley, Western Ky. University" <GOATHUNTER%WKUVX1.BITNET@CUNYVM.CUNY.EDU> . Subject: RE: Internal format of MAIL.MAI files To: INFO-VAX@SRI.COM X-Vms-To: IN%"INFO-VAX@SRI.COM"   ? "J.Lance Wilkinson" <JLW%PSULIAS.BITNET@CUNYVM.CUNY.EDU> wrote:   I >In migrating from another vendor, I've been sucessful in recovering that G >vendor's Email archival folders into a format from which I can extract K >information.  I'd like to take it one step further, and extract from these N >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. > N >What I'm looking for is the file structure (what types of records, what orderN >they appear in, indexes and keys) and the record structure(s) for the variousM >types of records.  Admittedly, more questions might be raised by the answers  >posted.  J The following information is valid for VMS V5.x.  Hope this helps (if this2 is a second posting, my apologies---I goofed! 8-))   HunterP =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-P Hunter Goatley, VAX Systems Programmer          E-mail: GOATHUNTER@WKUVX1.bitnetD ACRS, Western Kentucky University               Voice:  502-745-5251P =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  > All information comes from MAILDEF.SDL in VMS V5.0 micro-fiche   Mail message header record  	 Quadword: 2         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 folder7         3       FILEINFO        File status information 5         4       MW              Mailwatch info record 7         5       NEWMSG          New message information  Byte: 0         FILKEYLEN       Length of the filing key	 39 bytes: "         FILEKEY         Filing key   Word:          Flags:-         NEWMSG          This is a new message 8         REPLIED         This message has been replied to"         SKIP1           Skip a bit5         EXTMSG          Message text in external file /         EXTFNF          External file not found 3         SYSMSG          Message text in system file 5         EXTNSTD         External foreign type message 4         MARKED          This message has been marked)         SKIP2           Skip recmode flag  Byte4         FLAGSIZ         Size of flag string if ASCII Longword'         FLAGVAL         Value of /FLAG=  Byte1         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 message1 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 3         SELFSEND        Send a copy to self on SEND 4         SELFREPLY       Send a copy to self on REPLY5         NOAUTOPURGE     Don't autopurge on exit or ^Z 6         SELFFORWARD     Send a copy to self on FORWARD0         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         SPARE33 ----------------- End of message ------------------   