### Class

# Camel MimeMessage

#### Description

    class Camel.MimeMessage : Camel.MimePart
    {
      CamelMimeMessagePrivate* priv
    }

No description available.

#### Hierarchy

#### Ancestors

- CamelMimePart
- CamelMedium
- CamelDataWrapper
- GObject

#### Constructors

###### camel_mime_message_new

Create a new `CamelMimeMessage` object.

#### Instance methods

###### camel_mime_message_build_mbox_from

Build an MBox from-line from `message`.

###### camel_mime_message_dump

Dump information about the mime message to stdout.

###### camel_mime_message_encode_8bit_parts

Encode all message parts to a suitable transfer encoding for transport (7bit clean).

###### camel_mime_message_foreach_part

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`.

since: 3.34

###### camel_mime_message_get_date

Get the date and UTC offset of a message. See `camel_mime_message_set_date()` for information about the `offset` format.

###### camel_mime_message_get_date_received

Get the received date and UTC offset of a message. See `camel_mime_message_set_date()` for information about the `offset` format.

###### camel_mime_message_get_from

Get the from address of a message.

###### camel_mime_message_get_message_id

Get the message-id of a message.

###### camel_mime_message_get_part_by_content_id

Get a MIME part by id from a message.

###### camel_mime_message_get_recipients

Get the message recipients of a specified type.

###### camel_mime_message_get_reply_to

Get the Reply-To of a message.

###### camel_mime_message_get_source

Get the UID of the source account of the message.

###### camel_mime_message_get_subject

Get the UTF-8 subject text of a message.

###### camel_mime_message_has_8bit_parts

Find out if a message contains 8bit or binary encoded parts.

###### camel_mime_message_has_attachment

Returns whether message contains at least one attachment part.

since: 2.28

###### camel_mime_message_set_best_encoding

Re-encode all message parts to conform with the required encoding rules.

###### camel_mime_message_set_date

Set the date on a message.

###### camel_mime_message_set_from

Set the from address of a message.

###### camel_mime_message_set_message_id

Set the message-id on a message.

###### camel_mime_message_set_recipients

Set the recipients of a message.

###### camel_mime_message_set_reply_to

Set the Reply-To of a message.

###### camel_mime_message_set_source

Set the UID of the source account of the message.

###### camel_mime_message_set_subject

Set the subject text of a message.

##### Methods inherited from CamelMimePart (25)

Please see CamelMimePart for a full list of methods.

##### Methods inherited from CamelMedium (8)

###### camel_medium_add_header

Adds a header to a `CamelMedium`.

###### camel_medium_dup_headers

Gets an array of all header name/value pairs. The values will be decoded to UTF-8 for any headers that are recognized by Camel. See also camel_medium_get_headers().

since: 3.24

###### camel_medium_get_content

Gets a data wrapper that represents the content of the medium, without its headers.

###### camel_medium_get_header

Gets the value of the named header in the medium, or `NULL` if it is unset. The caller should not modify or free the data.

###### camel_medium_get_headers

Gets an array of all header name/value pairs. The values will be decoded to UTF-8 for any headers that are recognized by Camel. See also camel_medium_dup_headers().

since: 3.24

###### camel_medium_remove_header

Removes the named header from the medium. All occurances of the header are removed.

###### camel_medium_set_content

Sets the content of `medium` to be `content`.

###### camel_medium_set_header

Sets the value of a header. Any other occurances of the header will be removed. Setting a `NULL` header can be used to remove the header also.

##### Methods inherited from CamelDataWrapper (31)

Please see CamelDataWrapper for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

##### Properties inherited from CamelMimePart (5)

###### Camel.MimePart:content-id

No description available.

###### Camel.MimePart:content-location

No description available.

###### Camel.MimePart:content-md5

No description available.

###### Camel.MimePart:description

No description available.

###### Camel.MimePart:disposition

No description available.

##### Properties inherited from CamelMedium (1)

###### Camel.Medium:content

Content.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct CamelMimeMessageClass {
      CamelMimePartClass parent_class;
      gpointer reserved;

    }

No description available.

###### Class members

`parent_class: CamelMimePartClass`

  No description available.

`reserved: gpointer`

  No description available.