gmime.header
Module for [Header] class
Types 3
classHeader : gobject.object.ObjectWrap
A message or mime-part header.
Methods
HeaderGidBuilder builder()Get builder for [gmime.header.Header] Returns: New builder objectstring formatAddrlist(gmime.format_options.FormatOptions options, string value, string charset)Parses 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)Parses 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)Parses 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)Parses 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)Parses 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)Parses 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)Parses 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)Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary.string getName()Gets the header's name. Returns: the header name or null if invalid.long getOffset()Gets the header's stream offset if known. Returns: the header offset or %-1 if unknown.string getRawName()Gets 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()Gets the header's raw (folded) value. Returns: the header value or null if invalid.string getValue()Gets the header's unfolded value. Returns: the header's decoded value or null if invalid.void setRawValue(string rawValue)Sets the header's raw value.void setValue(gmime.format_options.FormatOptions options, string value, string charset = null)Sets the header's decoded value.ptrdiff_t writeToStream(gmime.format_options.FormatOptions options, gmime.stream.Stream stream)Write the header to the specified stream.