Most IMTA messages are stored as text files. Messages with multiple parts (possibly containing different types of data) are represented as a series of text sections separated by special unique delimiter strings.
A sample mail message file is given below.
Briefly, the key items in each message file are:
1. | The message envelope. The first records in the file contains message envelope (i.e., transport) information. The envelope is terminated by a record containing to two CTRL/A characters. | |
2. | The header lines of the message follow the envelope; their format is mandated by RFC 822. | |
3. | There may be any number of message header lines; the message header formed by this collection of header lines is terminated by a single blank line after which follows the message body. | |
4. | The message is terminated by a sequence of five CTRL/As. | |
5. | For messages that had transient delivery failures, information about retrial would go here. |
Note - Sun reserves the right to change this format in future releases of the IMTA. User-written applications that either read or write queued IMTA message files should make use of appropriate IMTA library routines. Use of the IMTA SDK will insulate user applications from any future message format changes.