## gmime-message-part

gmime-message-part —

## Synopsis

    struct      GMimeMessagePart;
    GMimeMessagePart* g_mime_message_part_new   (const char *subtype);
    GMimeMessagePart* g_mime_message_part_new_with_message
                                                (const char *subtype,
                                                 GMimeMessage *message);
    GMimeMessage* g_mime_message_part_get_message
                                                (GMimeMessagePart *part);
    void        g_mime_message_part_set_message (GMimeMessagePart *part,
                                                 GMimeMessage *message);

## Object Hierarchy

      GObject
       +----GMimeObject
             +----GMimeMessagePart

## Description

## Details

### struct GMimeMessagePart

    struct GMimeMessagePart;

### g_mime_message_part_new ()

    GMimeMessagePart* g_mime_message_part_new   (const char *subtype);

Creates a new MIME message part object with a default content-type of message/`subtype`.

`subtype` : | message subtype or `NULL` for "rfc822"
Returns : | an empty MIME message part object with a default content-type of message/`subtype`.

### g_mime_message_part_new_with_message ()

    GMimeMessagePart* g_mime_message_part_new_with_message
                                                (const char *subtype,
                                                 GMimeMessage *message);

Creates a new MIME message part object with a default content-type of message/`subtype` containing `message`.

`subtype` : | message subtype or `NULL` for "rfc822"
`message` : | message
Returns : | a MIME message part object with a default content-type of message/`subtype` containing `message`.

### g_mime_message_part_get_message ()

    GMimeMessage* g_mime_message_part_get_message
                                                (GMimeMessagePart *part);

Gets the message object on the message part object `part`.

`part` : | message part
Returns : | the message part contained within `part`.

### g_mime_message_part_set_message ()

    void        g_mime_message_part_set_message (GMimeMessagePart *part,
                                                 GMimeMessage *message);

Sets the `message` object on the message part object `part`.

`part` : | message part
`message` : | message