Details
GMIME_RECIPIENT_TYPE_TO
#define GMIME_RECIPIENT_TYPE_TO "To" |
GMIME_RECIPIENT_TYPE_CC
#define GMIME_RECIPIENT_TYPE_CC "Cc" |
GMIME_RECIPIENT_TYPE_BCC
#define GMIME_RECIPIENT_TYPE_BCC "Bcc" |
struct GMimeHeader
struct GMimeHeader {
gchar *name;
gchar *value;
}; |
struct GMimeMessageHeader
struct GMimeMessageHeader {
gchar *from;
gchar *reply_to;
GHashTable *recipients;
gchar *subject;
time_t date;
int gmt_offset; /* GMT offset */
GPtrArray *arbitrary_headers; /* of type GMimeHeader */
}; |
struct GMimeMessage
struct GMimeMessage {
GMimeMessageHeader *header;
GMimePart *mime_part;
}; |
g_mime_message_destroy ()
Releases all memory used by the MIME Message and it's child MIME
Parts back to the Operating System for reuse.
g_mime_message_set_sender ()
void g_mime_message_set_sender (GMimeMessage *message,
const gchar *sender); |
Set the sender's name and address on the MIME Message.
(ex: "\"Joe Sixpack\" <joesixpack.org>")
g_mime_message_get_sender ()
const gchar* g_mime_message_get_sender (GMimeMessage *message); |
g_mime_message_set_reply_to ()
void g_mime_message_set_reply_to (GMimeMessage *message,
const gchar *reply_to); |
Set the sender's Reply-To address on the MIME Message.
g_mime_message_get_reply_to ()
const gchar* g_mime_message_get_reply_to (GMimeMessage *message); |
g_mime_message_add_recipient ()
void g_mime_message_add_recipient (GMimeMessage *message,
gchar *type,
const gchar *name,
const gchar *address); |
Add a recipient of a chosen type to the MIME Message. Available
recipient types include: GMIME_RECIPIENT_TYPE_TO,
GMIME_RECIPIENT_TYPE_CC and GMIME_RECIPIENT_TYPE_BCC.
g_mime_message_add_recipients_from_string ()
void g_mime_message_add_recipients_from_string
(GMimeMessage *message,
gchar *type,
const gchar *string); |
Add a list of recipients of a chosen type to the MIME
Message. Available recipient types include:
GMIME_RECIPIENT_TYPE_TO, GMIME_RECIPIENT_TYPE_CC and
GMIME_RECIPIENT_TYPE_BCC. The string must be in the format
specified in rfc822.
g_mime_message_get_recipients ()
GList* g_mime_message_get_recipients (GMimeMessage *message,
const gchar *type); |
g_mime_message_set_subject ()
void g_mime_message_set_subject (GMimeMessage *message,
const gchar *subject); |
Set the Subject field on a MIME Message.
g_mime_message_get_subject ()
const gchar* g_mime_message_get_subject (GMimeMessage *message); |
g_mime_message_set_date ()
void g_mime_message_set_date (GMimeMessage *message,
time_t date,
int gmt_offset); |
Set the sent-date on a MIME Message.
g_mime_message_get_date ()
void g_mime_message_get_date (GMimeMessage *message,
time_t *date,
int *gmt_offset); |
Stores the date in time_t format in date and the GMT offset in
gmt_offset.
g_mime_message_get_date_string ()
gchar* g_mime_message_get_date_string (GMimeMessage *message); |
g_mime_message_add_arbitrary_header ()
void g_mime_message_add_arbitrary_header
(GMimeMessage *message,
const gchar *field,
const gchar *value); |
Add an arbitrary message header to the MIME Message such as X-Mailer,
X-Priority, or In-Reply-To.
g_mime_message_set_mime_part ()
Set the root-level MIME part of the message.
g_mime_header_printf ()
gchar* g_mime_header_printf (const gchar *format,
...); |
g_mime_message_to_string ()
g_mime_message_get_body ()
gchar* g_mime_message_get_body (const GMimeMessage *message,
gboolean want_plain,
gboolean *is_html); |
g_mime_message_get_headers ()