gmime.text_part

Module for [TextPart] class

Types 3

A text MIME part object.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
TextPart self() nothrowReturns `this`, for use in `with` statements.
TextPartGidBuilder builder() static nothrowGet builder for [gmime.text_part.TextPart] Returns: New builder object
gmime.text_part.TextPart newWithSubtype(string subtype) static nothrowCreates a new text MIME part with a sepcified subtype.
string getCharset() nothrowGets the value of the charset parameter on the Content-Type header. Returns: the value of the charset parameter or null if unavailable.
string getText() nothrowGets the text content of the mime_part as a string. Returns: a newly allocated string containing the utf-8 encoded text content.
void setCharset(string charset) nothrowSets the charset parameter on the Content-Type header to the specified value.
void setText(string text) nothrowSets the specified text as the content and updates the charset parameter on the Content-Type header.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new text MIME part object with a default content-type of text/plain. Returns: an empty MIME Part object with a default content-type of text/plain.

Fluent builder implementation template for gmime.text_part.TextPart

Fluent builder for gmime.text_part.TextPart

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