gmime.message
Module for [Message] class
Types 3
classMessage : gmime.object.ObjectWrap
A MIME Message object.
Methods
MessageGidBuilder builder() static nothrowGet builder for [gmime.message.Message] Returns: New builder objectvoid addMailbox(gmime.types.AddressType type, string name, string addr) nothrowAdd a mailbox of a chosen type to the MIME message.void foreach_(gmime.types.ObjectForeachFunc callback) nothrowRecursively calls callback on each of the mime parts in the mime message.gmime.internet_address_list.InternetAddressList getAddresses(gmime.types.AddressType type) nothrowGets a list of addresses of the specified type from the message.gmime.internet_address_list.InternetAddressList getAllRecipients() nothrowGets 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) nothrowCreates 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) nothrowCreates a new #GMimeAutocryptHeader based on the relevant Autocrypt header associated with the sender of an e-mail message.gmime.internet_address_list.InternetAddressList getBcc() nothrowGets 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() nothrowAttempts 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() nothrowGets 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() nothrowGets 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() nothrowGets the parsed list of addresses in the From header. Returns: the parsed list of addresses in the From header.string getMessageId() nothrowGets the Message-Id header of message. Returns: the Message-Id of a message, or null if not specified.gmime.object.ObjectWrap getMimePart() nothrowGets 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() nothrowGets 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() nothrowGets the parsed list of addresses in the Sender header. Returns: the parsed list of addresses in the Sender header.string getSubject() nothrowGets 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() nothrowGets 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) nothrowSplits 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 setMimePart(gmime.object.ObjectWrap mimePart) nothrowSet the root-level MIME part of the message.Fluent builder implementation template for gmime.message.Message
Fluent builder for gmime.message.Message
Methods