| Top |  |  |  |  | 
| #define | CAMEL_RECIPIENT_TYPE_TO | 
| #define | CAMEL_RECIPIENT_TYPE_CC | 
| #define | CAMEL_RECIPIENT_TYPE_BCC | 
| #define | CAMEL_RECIPIENT_TYPE_RESENT_TO | 
| #define | CAMEL_RECIPIENT_TYPE_RESENT_CC | 
| #define | CAMEL_RECIPIENT_TYPE_RESENT_BCC | 
| #define | CAMEL_MESSAGE_DATE_CURRENT | 
    GObject
    ╰── CamelDataWrapper
        ╰── CamelMedium
            ╰── CamelMimePart
                ╰── CamelMimeMessage
CamelMimeMessage *
camel_mime_message_new (void);
Create a new CamelMimeMessage object.
void camel_mime_message_set_date (CamelMimeMessage *message,time_t date,gint offset);
Set the date on a message.
In most cases, this is used to set the current date:
| 1 | camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); | 
| message | a CamelMimeMessage object | |
| date | a time_t date or  | |
| offset | an offset from UTC in decimal number using the +HHMM format (for instance an offset
of -10:45 is -1045). If  | 
time_t camel_mime_message_get_date (CamelMimeMessage *message,gint *offset);
Get the date and UTC offset of a message.
See camel_mime_message_set_date() for information about the offset
 format.
time_t camel_mime_message_get_date_received (CamelMimeMessage *message,gint *offset);
Get the received date and UTC offset of a message.
See camel_mime_message_set_date() for information about the offset
 format.
void camel_mime_message_set_message_id (CamelMimeMessage *message,const gchar *message_id);
Set the message-id on a message.
| message | a CamelMimeMessage object | |
| message_id | id of the message, or  | [nullable] | 
const gchar *
camel_mime_message_get_message_id (CamelMimeMessage *message);
Get the message-id of a message.
void camel_mime_message_set_reply_to (CamelMimeMessage *message,CamelInternetAddress *reply_to);
Set the Reply-To of a message.
CamelInternetAddress *
camel_mime_message_get_reply_to (CamelMimeMessage *message);
Get the Reply-To of a message.
void camel_mime_message_set_subject (CamelMimeMessage *message,const gchar *subject);
Set the subject text of a message.
const gchar *
camel_mime_message_get_subject (CamelMimeMessage *message);
Get the UTF-8 subject text of a message.
void camel_mime_message_set_from (CamelMimeMessage *message,CamelInternetAddress *from);
Set the from address of a message.
CamelInternetAddress *
camel_mime_message_get_from (CamelMimeMessage *message);
Get the from address of a message.
CamelInternetAddress * camel_mime_message_get_recipients (CamelMimeMessage *message,const gchar *type);
Get the message recipients of a specified type.
void camel_mime_message_set_recipients (CamelMimeMessage *message,const gchar *type,CamelInternetAddress *recipients);
Set the recipients of a message.
| message | a CamelMimeMessage object | |
| type | recipient type (one of CAMEL_RECIPIENT_TYPE_TO, CAMEL_RECIPIENT_TYPE_CC, or CAMEL_RECIPIENT_TYPE_BCC) | |
| recipients | a CamelInternetAddress with the recipient addresses set or  | [nullable] | 
void camel_mime_message_set_source (CamelMimeMessage *message,const gchar *source_uid);
Set the UID of the source account of the message.
const gchar *
camel_mime_message_get_source (CamelMimeMessage *message);
Get the UID of the source account of the message.
gboolean (*CamelForeachPartFunc) (CamelMimeMessage *message,CamelMimePart *part,CamelMimePart *parent_part,gpointer user_data);
Callback used to traverse parts of the message
 using camel_mime_message_foreach_part().
| message | ||
| part | a CamelMimePart, for which the function is called | |
| parent_part | a CamelMimePart, parent of the  | [nullable] | 
| user_data | user data, as passed to  | 
Since: 3.34
void camel_mime_message_foreach_part (CamelMimeMessage *message,CamelForeachPartFunc callback,gpointer user_data);
Calls callback
 for each part of the message
, including the message itself.
The traverse of the message
 parts can be stopped when the callback
returns FALSE.
| message | ||
| callback | a CamelForeachPartFunc callback to call for each part. | [scope call] | 
| user_data | user data passed to the  | [closure callback] | 
Since: 3.34
gboolean
camel_mime_message_has_8bit_parts (CamelMimeMessage *message);
Find out if a message contains 8bit or binary encoded parts.
void camel_mime_message_set_best_encoding (CamelMimeMessage *message,CamelBestencRequired required,CamelBestencEncoding enctype);
Re-encode all message parts to conform with the required encoding rules.
If enctype
 is CAMEL_BESTENC_7BIT, then all parts will be re-encoded into
one of the 7bit transfer encodings. If enctype
 is CAMEL_BESTENC_8BIT, all
parts will be re-encoded to either a 7bit encoding or, if the part is 8bit
text, allowed to stay 8bit. If enctype
 is CAMEL_BESTENC_BINARY, then binary
parts will be encoded as binary and 8bit textual parts will be encoded as 8bit.
| message | a CamelMimeMessage object | |
| required | a bitwise ORing of CAMEL_BESTENC_GET_ENCODING and CAMEL_BESTENC_GET_CHARSET | |
| enctype | an encoding to enforce | 
void
camel_mime_message_encode_8bit_parts (CamelMimeMessage *message);
Encode all message parts to a suitable transfer encoding for transport (7bit clean).
CamelMimePart * camel_mime_message_get_part_by_content_id (CamelMimeMessage *message,const gchar *content_id);
Get a MIME part by id from a message.
gchar *
camel_mime_message_build_mbox_from (CamelMimeMessage *message);
Build an MBox from-line from message
.
gboolean
camel_mime_message_has_attachment (CamelMimeMessage *message);
Returns whether message contains at least one attachment part.
Since: 2.28
void camel_mime_message_dump (CamelMimeMessage *message,gint body);
Dump information about the mime message to stdout.
If body is TRUE, then dump body content of the message as well.