Details
GMIME_RECIPIENT_TYPE_TO
#define GMIME_RECIPIENT_TYPE_TO "To" |
Recipients in the To: header.
GMIME_RECIPIENT_TYPE_CC
#define GMIME_RECIPIENT_TYPE_CC "Cc" |
Recipients in the Cc: header.
GMIME_RECIPIENT_TYPE_BCC
#define GMIME_RECIPIENT_TYPE_BCC "Bcc" |
Recipients in the Bcc: header.
struct GMimeMessage
struct GMimeMessage {
GMimeObject parent_object;
char *from;
char *reply_to;
GHashTable *recipients;
char *subject;
time_t date;
int gmt_offset; /* GMT offset */
char *message_id;
GMimeObject *mime_part;
}; |
g_mime_message_new ()
If pretty_headers is TRUE, then the standard rfc822 headers are
initialized so as to put headers in a nice friendly order. This is
strictly a cosmetic thing, so if you are unsure, it is safe to say
no (FALSE).
g_mime_message_set_sender ()
void g_mime_message_set_sender (GMimeMessage *message,
const char *sender); |
Set the sender's name and address on the MIME Message.
(ex: "\"Joe Sixpack\" <joesixpack.org>")
g_mime_message_get_sender ()
const char* g_mime_message_get_sender (GMimeMessage *message); |
Gets the email address of the sender from message.
g_mime_message_set_reply_to ()
void g_mime_message_set_reply_to (GMimeMessage *message,
const char *reply_to); |
Set the sender's Reply-To address on the MIME Message.
g_mime_message_get_reply_to ()
const char* g_mime_message_get_reply_to (GMimeMessage *message); |
Gets the Reply-To address from message.
g_mime_message_set_subject ()
void g_mime_message_set_subject (GMimeMessage *message,
const char *subject); |
Set the Subject field on a MIME Message.
g_mime_message_get_subject ()
const char* g_mime_message_get_subject (GMimeMessage *message); |
Gets the message's subject.
g_mime_message_set_date ()
void g_mime_message_set_date (GMimeMessage *message,
time_t date,
int gmt_offset); |
Sets 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 ()
char* g_mime_message_get_date_string (GMimeMessage *message); |
Gets the message's sent date in string format.
g_mime_message_set_message_id ()
void g_mime_message_set_message_id (GMimeMessage *message,
const char *message_id); |
Set the Message-Id on a message.
g_mime_message_get_message_id ()
const char* g_mime_message_get_message_id (GMimeMessage *message); |
Gets the Message-Id header of message.
g_mime_message_add_header ()
void g_mime_message_add_header (GMimeMessage *message,
const char *header,
const char *value); |
Add an arbitrary message header to the MIME Message such as X-Mailer,
X-Priority, or In-Reply-To.
g_mime_message_set_header ()
void g_mime_message_set_header (GMimeMessage *message,
const char *header,
const char *value); |
Set an arbitrary message header to the MIME Message such as X-Mailer,
X-Priority, or In-Reply-To.
g_mime_message_get_header ()
const char* g_mime_message_get_header (GMimeMessage *message,
const char *header); |
Gets the value of the requested header header if it exists, or
NULL otherwise.
g_mime_message_set_mime_part ()
Set the root-level MIME part of the message.
g_mime_message_write_to_stream ()
Write the contents of the MIME Message to stream.
g_mime_message_to_string ()
Allocates a string buffer containing the mime message message.
g_mime_message_get_body ()
char* g_mime_message_get_body (const GMimeMessage *message,
gboolean want_plain,
gboolean *is_html); |
Attempts to get the body of the message in the preferred format
specified by want_plain.
g_mime_message_get_headers ()
Allocates a string buffer containing the raw message headers.
g_mime_message_foreach_part ()
Calls callback on each of the mime parts in the mime message.