This class is used to hold a decoded MIME message.
Variable
headers
mapping(string:string) MIME.Message.headers
Description
This mapping contains all the headers of the message.
The key is the header name (in lower case) and the value is
the header value.
Although the mapping contains all headers, some particular headers get
special treatment by the module and should not be accessed through
this mapping. These fields are currently:
"content-type"
"content-disposition"
"content-length"
"content-transfer-encoding"
The contents of these fields can be accessed and/or modified through
a set of variables and methods available for this purpose.
If the message is of type multipart, this is an array
containing one Message object for each part of the message.
If the message is not a multipart, this field is 0 (zero).
For multipart messages, this Content-Type parameter gives a
delimiter string for separating the individual messages. As multiparts
are handled internally by the module, you should not need to access this
field.
The Content-Type header contains a type, a subtype, and optionally
some parameters. This field contains the subtype attribute extracted
from the header.
If there is no Content-Type header, the value of this field
is "plain".
The contents of the Content-Transfer-Encoding header.
If no Content-Transfer-Encoding header is given, this field
is 0 (zero).
Transfer encoding and decoding is done transparently by the module,
so this field should be interesting only to applications wishing to
do auto conversion of certain transfer encodings.