gmime.header

Module for [Header] class

Types 3

A message or mime-part header.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Header self() nothrowReturns `this`, for use in `with` statements.
HeaderGidBuilder builder() static nothrowGet builder for [gmime.header.Header] Returns: New builder object
string formatAddrlist(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatContentDisposition(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatContentType(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatDefault(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatMessageId(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatNewsgroups(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatReceived(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string formatReferences(gmime.format_options.FormatOptions options, string value, string charset) nothrowParses the value and then re-formats it to conform to the formatting options, folding the value if necessary.
string getName() nothrowGets the header's name. Returns: the header name or null if invalid.
long getOffset() nothrowGets the header's stream offset if known. Returns: the header offset or %-1 if unknown.
string getRawName() nothrowGets the header's raw name. The raw header name is the complete string up to (but not including) the ':' separating the header's name from its value. This string may be different from the value ret...
string getRawValue() nothrowGets the header's raw (folded) value. Returns: the header value or null if invalid.
string getValue() nothrowGets the header's unfolded value. Returns: the header's decoded value or null if invalid.
void setRawValue(string rawValue) nothrowSets the header's raw value.
void setValue(gmime.format_options.FormatOptions options, string value, string charset = null) nothrowSets the header's decoded value.
ptrdiff_t writeToStream(gmime.format_options.FormatOptions options, gmime.stream.Stream stream) nothrowWrite the header to the specified stream.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gmime.header.Header

Fluent builder for gmime.header.Header

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