<refentry id="InternetAddressMailbox">
<refmeta>
<refentrytitle role="top_of_page" id="InternetAddressMailbox.top_of_page">InternetAddressMailbox</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  GMIME Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>InternetAddressMailbox</refname>
<refpurpose>rfc822 'mailbox' address</refpurpose>
</refnamediv>

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

<synopsis>                    <link linkend="InternetAddressMailbox-struct">InternetAddressMailbox</link>;
<link linkend="InternetAddress"><returnvalue>InternetAddress</returnvalue></link> *   <link linkend="internet-address-mailbox-new">internet_address_mailbox_new</link>        (<parameter>const <link linkend="char"><type>char</type></link> *name</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *addr</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="internet-address-mailbox-get-addr">internet_address_mailbox_get_addr</link>   (<parameter><link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> *mailbox</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="internet-address-mailbox-set-addr">internet_address_mailbox_set_addr</link>   (<parameter><link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> *mailbox</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *addr</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="InternetAddressMailbox.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="InternetAddress">InternetAddress</link>
         +----InternetAddressMailbox
</synopsis>
</refsect1>

<refsect1 id="InternetAddressMailbox.description" role="desc">
<title role="desc.title">Description</title>
<para>
An <link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> represents what is a typical "email
address".
</para>
</refsect1>
<refsect1 id="InternetAddressMailbox.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="InternetAddressMailbox-struct" role="struct">
<title>InternetAddressMailbox</title>
<indexterm zone="InternetAddressMailbox-struct"><primary>InternetAddressMailbox</primary></indexterm>
<programlisting>typedef struct _InternetAddressMailbox InternetAddressMailbox;</programlisting>
<para>
An RFC 2822 Mailbox address.
</para><variablelist role="struct">
</variablelist></refsect2>
<refsect2 id="internet-address-mailbox-new" role="function">
<title>internet_address_mailbox_new ()</title>
<indexterm zone="internet-address-mailbox-new"><primary>internet_address_mailbox_new</primary></indexterm>
<programlisting><link linkend="InternetAddress"><returnvalue>InternetAddress</returnvalue></link> *   internet_address_mailbox_new        (<parameter>const <link linkend="char"><type>char</type></link> *name</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *addr</parameter>);</programlisting>
<para>
Creates a new <link linkend="InternetAddress"><type>InternetAddress</type></link> object with name <parameter>name</parameter> and address
<parameter>addr</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>name</parameter>&#160;:</term>
<listitem><simpara>person's name
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>addr</parameter>&#160;:</term>
<listitem><simpara>person's address
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new <link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> object.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="internet-address-mailbox-get-addr" role="function">
<title>internet_address_mailbox_get_addr ()</title>
<indexterm zone="internet-address-mailbox-get-addr"><primary>internet_address_mailbox_get_addr</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        internet_address_mailbox_get_addr   (<parameter><link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> *mailbox</parameter>);</programlisting>
<para>
Gets the addr-spec of the internet address mailbox.
</para><variablelist role="params">
<varlistentry><term><parameter>mailbox</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the address of the mailbox.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="internet-address-mailbox-set-addr" role="function">
<title>internet_address_mailbox_set_addr ()</title>
<indexterm zone="internet-address-mailbox-set-addr"><primary>internet_address_mailbox_set_addr</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                internet_address_mailbox_set_addr   (<parameter><link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link> *mailbox</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *addr</parameter>);</programlisting>
<para>
Set the mailbox address.
</para><variablelist role="params">
<varlistentry><term><parameter>mailbox</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="InternetAddressMailbox"><type>InternetAddressMailbox</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>addr</parameter>&#160;:</term>
<listitem><simpara>contact's email address
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="InternetAddressMailbox.see-also">
<title>See Also</title>
<link linkend="InternetAddress"><type>InternetAddress</type></link>
</refsect1>

</refentry>
