<refentry id="GMimeMessagePart">
<refmeta>
<refentrytitle role="top_of_page" id="GMimeMessagePart.top_of_page">GMimeMessagePart</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  GMIME Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GMimeMessagePart</refname>
<refpurpose>Message parts</refpurpose>
</refnamediv>

<refsynopsisdiv id="GMimeMessagePart.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>                    <link linkend="GMimeMessagePart-struct">GMimeMessagePart</link>;
<link linkend="GMimeMessagePart"><returnvalue>GMimeMessagePart</returnvalue></link> *  <link linkend="g-mime-message-part-new">g_mime_message_part_new</link>             (<parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>);
<link linkend="GMimeMessagePart"><returnvalue>GMimeMessagePart</returnvalue></link> *  <link linkend="g-mime-message-part-new-with-message">g_mime_message_part_new_with_message</link>
                                                        (<parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>,
                                                         <parameter><link linkend="GMimeMessage"><type>GMimeMessage</type></link> *message</parameter>);
<link linkend="GMimeMessage"><returnvalue>GMimeMessage</returnvalue></link> *      <link linkend="g-mime-message-part-get-message">g_mime_message_part_get_message</link>     (<parameter><link linkend="GMimeMessagePart"><type>GMimeMessagePart</type></link> *part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-message-part-set-message">g_mime_message_part_set_message</link>     (<parameter><link linkend="GMimeMessagePart"><type>GMimeMessagePart</type></link> *part</parameter>,
                                                         <parameter><link linkend="GMimeMessage"><type>GMimeMessage</type></link> *message</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GMimeMessagePart.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GMimeObject">GMimeObject</link>
         +----GMimeMessagePart
</synopsis>
</refsect1>

<refsect1 id="GMimeMessagePart.description" role="desc">
<title role="desc.title">Description</title>
<para>
A <link linkend="GMimeMessagePart"><type>GMimeMessagePart</type></link> represents message/rfc822 and message/news MIME
parts.
</para>
</refsect1>
<refsect1 id="GMimeMessagePart.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GMimeMessagePart-struct" role="struct">
<title>GMimeMessagePart</title>
<indexterm zone="GMimeMessagePart-struct"><primary>GMimeMessagePart</primary></indexterm>
<programlisting>typedef struct _GMimeMessagePart GMimeMessagePart;</programlisting>
<para>
A message/rfc822 or message/news MIME part.
</para><variablelist role="struct">
</variablelist></refsect2>
<refsect2 id="g-mime-message-part-new" role="function">
<title>g_mime_message_part_new ()</title>
<indexterm zone="g-mime-message-part-new"><primary>g_mime_message_part_new</primary></indexterm>
<programlisting><link linkend="GMimeMessagePart"><returnvalue>GMimeMessagePart</returnvalue></link> *  g_mime_message_part_new             (<parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>);</programlisting>
<para>
Creates a new MIME message part object with a default content-type
of message/<parameter>subtype</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>subtype</parameter>&#160;:</term>
<listitem><simpara>message subtype or <link linkend="NULL:CAPS"><literal>NULL</literal></link> for "rfc822"
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> an empty MIME message part object with a default
content-type of message/<parameter>subtype</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-message-part-new-with-message" role="function">
<title>g_mime_message_part_new_with_message ()</title>
<indexterm zone="g-mime-message-part-new-with-message"><primary>g_mime_message_part_new_with_message</primary></indexterm>
<programlisting><link linkend="GMimeMessagePart"><returnvalue>GMimeMessagePart</returnvalue></link> *  g_mime_message_part_new_with_message
                                                        (<parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>,
                                                         <parameter><link linkend="GMimeMessage"><type>GMimeMessage</type></link> *message</parameter>);</programlisting>
<para>
Creates a new MIME message part object with a default content-type
of message/<parameter>subtype</parameter> containing <parameter>message</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>subtype</parameter>&#160;:</term>
<listitem><simpara>message subtype or <link linkend="NULL:CAPS"><literal>NULL</literal></link> for "rfc822"
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message</parameter>&#160;:</term>
<listitem><simpara>message
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a MIME message part object with a default content-type of
message/<parameter>subtype</parameter> containing <parameter>message</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-message-part-get-message" role="function">
<title>g_mime_message_part_get_message ()</title>
<indexterm zone="g-mime-message-part-get-message"><primary>g_mime_message_part_get_message</primary></indexterm>
<programlisting><link linkend="GMimeMessage"><returnvalue>GMimeMessage</returnvalue></link> *      g_mime_message_part_get_message     (<parameter><link linkend="GMimeMessagePart"><type>GMimeMessagePart</type></link> *part</parameter>);</programlisting>
<para>
Gets the message object on the message part object <parameter>part</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>part</parameter>&#160;:</term>
<listitem><simpara>message part
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the message part contained within <parameter>part</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-message-part-set-message" role="function">
<title>g_mime_message_part_set_message ()</title>
<indexterm zone="g-mime-message-part-set-message"><primary>g_mime_message_part_set_message</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_message_part_set_message     (<parameter><link linkend="GMimeMessagePart"><type>GMimeMessagePart</type></link> *part</parameter>,
                                                         <parameter><link linkend="GMimeMessage"><type>GMimeMessage</type></link> *message</parameter>);</programlisting>
<para>
Sets the <parameter>message</parameter> object on the message part object <parameter>part</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>part</parameter>&#160;:</term>
<listitem><simpara>message part
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message</parameter>&#160;:</term>
<listitem><simpara>message
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>

</refentry>
