gmime.message

Module for [Message] class

Types 3

A MIME Message object.

Methods
GType _gType() @property
Message self()Returns `this`, for use in `with` statements.
MessageGidBuilder builder()Get builder for [gmime.message.Message] Returns: New builder object
void addMailbox(gmime.types.AddressType type, string name, string addr)Add a mailbox of a chosen type to the MIME message.
void foreach_(gmime.types.ObjectForeachFunc callback)Recursively calls callback on each of the mime parts in the mime message.
gmime.internet_address_list.InternetAddressList getAddresses(gmime.types.AddressType type)Gets a list of addresses of the specified type from the message.
gmime.internet_address_list.InternetAddressList getAllRecipients()Gets the complete list of recipients for message. Returns: a newly allocated #InternetAddressList containing all recipients of the message or null if no recipients are set.
gmime.autocrypt_header_list.AutocryptHeaderList getAutocryptGossipHeaders(glib.date_time.DateTime now, gmime.types.DecryptFlags flags, string sessionKey = null)Creates a new #GMimeAutocryptHeaderList of relevant headers of the given type based on the recipient(s) of an e-mail message.
gmime.autocrypt_header_list.AutocryptHeaderList getAutocryptGossipHeadersFromInnerPart(glib.date_time.DateTime now, gmime.object.ObjectWrap innerPart)Creates a new #GMimeAutocryptHeaderList of relevant headers of the given type based on the recipient(s) of an e-mail message.
gmime.autocrypt_header.AutocryptHeader getAutocryptHeader(glib.date_time.DateTime now = null)Creates a new #GMimeAutocryptHeader based on the relevant Autocrypt header associated with the sender of an e-mail message.
gmime.internet_address_list.InternetAddressList getBcc()Gets combined list of parsed addresses in the Bcc header(s). Returns: the parsed list of addresses in the Bcc header(s).
gmime.object.ObjectWrap getBody()Attempts to identify the MIME part containing the body of the message. Returns: a #GMimeObject containing the textual content that appears to be the main body of the message, or null if no body par...
gmime.internet_address_list.InternetAddressList getCc()Gets combined list of parsed addresses in the Cc header(s). Returns: the parsed list of addresses in the Cc header(s).
glib.date_time.DateTime getDate()Gets the parsed date and time value from the Date header. Returns: a #GDateTime on success or null if the date could not be parsed.
gmime.internet_address_list.InternetAddressList getFrom()Gets the parsed list of addresses in the From header. Returns: the parsed list of addresses in the From header.
string getMessageId()Gets the Message-Id header of message. Returns: the Message-Id of a message, or null if not specified.
gmime.object.ObjectWrap getMimePart()Gets the toplevel MIME part contained within message. Returns: the toplevel MIME part of message, or null if none is present.
gmime.internet_address_list.InternetAddressList getReplyTo()Gets the parsed list of addresses in the Reply-To header. Returns: the parsed list of addresses in the Reply-To header.
gmime.internet_address_list.InternetAddressList getSender()Gets the parsed list of addresses in the Sender header. Returns: the parsed list of addresses in the Sender header.
string getSubject()Gets the subject of the message. Returns: the subject of the message in a form suitable for display or null if no subject is set. If not null, the returned string will be in UTF-8.
gmime.internet_address_list.InternetAddressList getTo()Gets combined list of parsed addresses in the To header(s). Returns: the parsed list of addresses in the To header(s).
gmime.message.Message[] partialSplitMessage(size_t maxSize)Splits message into an array of #GMimeMessage objects each containing a single #GMimeMessagePartial object containing max_size bytes or fewer. nparts is set to the number of #GMimeMessagePartial ob...
void setDate(glib.date_time.DateTime date)Sets the Date header on a MIME Message.
void setMessageId(string messageId)Set the Message-Id on a message.
void setMimePart(gmime.object.ObjectWrap mimePart)Set the root-level MIME part of the message.
void setSubject(string subject, string charset = null)Set the subject of a message.
Constructors
this(void * ptr, Flag!"Take" take)
this(bool prettyHeaders)If pretty_headers is true, then the standard rfc822 headers are initialized so as to put headers in a nice friendly order. This is strictly a cosmetic thing, so if you are unsure, it is safe to say...

Fluent builder for [gmime.message.Message]

Methods
Message build()