gmime.multipart
Module for [Multipart] class
Types 3
classMultipart : gmime.object.ObjectWrap
A base MIME multipart object.
Methods
MultipartGidBuilder builder()Get builder for [gmime.multipart.Multipart] Returns: New builder objectgmime.multipart.Multipart newWithSubtype(string subtype)Creates a new MIME multipart object with a content-type of multipart/subtype.void add(gmime.object.ObjectWrap part)Appends a mime part to multipart.void clear()Removes all subparts from multipart.bool contains(gmime.object.ObjectWrap part)Checks if part is contained within multipart.void foreach_(gmime.types.ObjectForeachFunc callback)Recursively calls callback on each of multipart's subparts.string getBoundary()Gets 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()Gets the number of parts contained within multipart. Returns: the number of parts contained within multipart.string getEpilogue()Gets the epilogue on the multipart. Returns: a pointer to the epilogue string on the multipart.gmime.object.ObjectWrap getPart(int index)Gets the part at the specified index within the multipart.string getPrologue()Gets the prologue on the multipart. Returns: a pointer to the prologue string on the multipart.gmime.object.ObjectWrap getSubpartFromContentId(string contentId)Gets the mime part with the content-id content_id from the multipart multipart.int indexOf(gmime.object.ObjectWrap part)Gets the 0-based index of part within multipart.void insert(int index, gmime.object.ObjectWrap part)Inserts part into multipart at the specified index.bool remove(gmime.object.ObjectWrap part)Removes the specified part from multipart.gmime.object.ObjectWrap removeAt(int index)Removes the part at the specified index from multipart.gmime.object.ObjectWrap replace(int index, gmime.object.ObjectWrap replacement)Replaces the part at the specified index within multipart with replacement.void setBoundary(string boundary)Sets boundary as the boundary on the multipart. If boundary is null, then a boundary will be auto-generated for you.void setEpilogue(string epilogue)Sets the epilogue on the multipart.void setPrologue(string prologue)Sets the prologue on the multipart.