gmime.text_part

Module for [TextPart] class

Types 3

A text MIME part object.

Methods
GType _gType() @property
TextPart self()Returns `this`, for use in `with` statements.
TextPartGidBuilder builder()Get builder for [gmime.text_part.TextPart] Returns: New builder object
gmime.text_part.TextPart newWithSubtype(string subtype)Creates a new text MIME part with a sepcified subtype.
string getCharset()Gets the value of the charset parameter on the Content-Type header. Returns: the value of the charset parameter or null if unavailable.
string getText()Gets 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)Sets the charset parameter on the Content-Type header to the specified value.
void setText(string text)Sets 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 for [gmime.text_part.TextPart]

Methods