gmime.multipart

Module for [Multipart] class

Types 3

A base MIME multipart object.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Multipart self() nothrowReturns `this`, for use in `with` statements.
MultipartGidBuilder builder() static nothrowGet builder for [gmime.multipart.Multipart] Returns: New builder object
gmime.multipart.Multipart newWithSubtype(string subtype) static nothrowCreates a new MIME multipart object with a content-type of multipart/subtype.
void add(gmime.object.ObjectWrap part) nothrowAppends a mime part to multipart.
void clear() nothrowRemoves all subparts from multipart.
bool contains(gmime.object.ObjectWrap part) nothrowChecks if part is contained within multipart.
void foreach_(gmime.types.ObjectForeachFunc callback) nothrowRecursively calls callback on each of multipart's subparts.
string getBoundary() nothrowGets the boundary on the multipart. If the internal boundary is null, then an auto-generated boundary will be set on the multipart and returned. Returns: the boundary on the multipart.
int getCount() nothrowGets the number of parts contained within multipart. Returns: the number of parts contained within multipart.
string getEpilogue() nothrowGets the epilogue on the multipart. Returns: a pointer to the epilogue string on the multipart.
gmime.object.ObjectWrap getPart(int index) nothrowGets the part at the specified index within the multipart.
string getPrologue() nothrowGets the prologue on the multipart. Returns: a pointer to the prologue string on the multipart.
gmime.object.ObjectWrap getSubpartFromContentId(string contentId) nothrowGets the mime part with the content-id content_id from the multipart multipart.
int indexOf(gmime.object.ObjectWrap part) nothrowGets the 0-based index of part within multipart.
void insert(int index, gmime.object.ObjectWrap part) nothrowInserts part into multipart at the specified index.
bool remove(gmime.object.ObjectWrap part) nothrowRemoves the specified part from multipart.
gmime.object.ObjectWrap removeAt(int index) nothrowRemoves the part at the specified index from multipart.
gmime.object.ObjectWrap replace(int index, gmime.object.ObjectWrap replacement) nothrowReplaces the part at the specified index within multipart with replacement.
void setBoundary(string boundary) nothrowSets boundary as the boundary on the multipart. If boundary is null, then a boundary will be auto-generated for you.
void setEpilogue(string epilogue) nothrowSets the epilogue on the multipart.
void setPrologue(string prologue) nothrowSets the prologue on the multipart.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new MIME multipart object with a default content-type of multipart/mixed. Returns: an empty MIME multipart object with a default content-type of multipart/mixed.

Fluent builder for gmime.multipart.Multipart

Methods
Multipart build() nothrowCreate object from builder. Returns: New object