This creates and appends a new part to the given mime object and returns a handle to it. The returned mime part
handle can subsequently be populated using functions from the mime part API such as mimepart:Name() and
mimepart:Data(). Mime objects can be created using easy:Mime().
Optionally, you can also initialize the mime part object right at creation time by passing the optional table
argument. This table can contain the following fields:
Name
-
Set the mime part's name. See mimepart:Name for details.
Data
-
Set the mime part's body data. See mimepart:Data for details.
FileData
-
Set the mime part's body data from a file source. See mimepart:FileData for details.
Filename
-
Set the mime part's remote file name. See mimepart:Filename for details.
Type
-
Set the mime part's type. See mimepart:Type for details.
Encoder
-
Set the mime part's encoder. See mimepart:Encoder for details.
Headers
-
Set the mime part's headers. See mimepart:Headers for details.
Subparts
-
Set the mime part's subparts. See mimepart:Subparts for details.