Top | ![]() |
![]() |
![]() |
![]() |
GMimeMessage * | g_mime_message_new () |
InternetAddressList * | g_mime_message_get_sender () |
InternetAddressList * | g_mime_message_get_from () |
InternetAddressList * | g_mime_message_get_reply_to () |
InternetAddressList * | g_mime_message_get_to () |
InternetAddressList * | g_mime_message_get_cc () |
InternetAddressList * | g_mime_message_get_bcc () |
void | g_mime_message_add_mailbox () |
InternetAddressList * | g_mime_message_get_addresses () |
InternetAddressList * | g_mime_message_get_all_recipients () |
void | g_mime_message_set_subject () |
const char * | g_mime_message_get_subject () |
void | g_mime_message_set_date () |
GDateTime * | g_mime_message_get_date () |
void | g_mime_message_set_message_id () |
const char * | g_mime_message_get_message_id () |
void | g_mime_message_set_mime_part () |
GMimeObject * | g_mime_message_get_mime_part () |
void | g_mime_message_foreach () |
GMimeObject * | g_mime_message_get_body () |
GMimeMessage *
g_mime_message_new (gboolean pretty_headers
);
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
).
InternetAddressList *
g_mime_message_get_sender (GMimeMessage *message
);
Gets the parsed list of addresses in the Sender header.
InternetAddressList *
g_mime_message_get_from (GMimeMessage *message
);
Gets the parsed list of addresses in the From header.
InternetAddressList *
g_mime_message_get_reply_to (GMimeMessage *message
);
Gets the parsed list of addresses in the Reply-To header.
InternetAddressList *
g_mime_message_get_to (GMimeMessage *message
);
Gets combined list of parsed addresses in the To header(s).
InternetAddressList *
g_mime_message_get_cc (GMimeMessage *message
);
Gets combined list of parsed addresses in the Cc header(s).
InternetAddressList *
g_mime_message_get_bcc (GMimeMessage *message
);
Gets combined list of parsed addresses in the Bcc header(s).
void g_mime_message_add_mailbox (GMimeMessage *message
,GMimeAddressType type
,const char *name
,const char *addr
);
Add a mailbox of a chosen type to the MIME message.
Note: The name
(and addr
) strings should be in UTF-8.
InternetAddressList * g_mime_message_get_addresses (GMimeMessage *message
,GMimeAddressType type
);
Gets a list of addresses of the specified type
from the message
.
InternetAddressList *
g_mime_message_get_all_recipients (GMimeMessage *message
);
Gets the complete list of recipients for message
.
a newly allocated InternetAddressList
containing all recipients of the message or NULL
if no recipients
are set.
void g_mime_message_set_subject (GMimeMessage *message
,const char *subject
,const char *charset
);
Set the subject of a message
.
Note: The subject
string should be in UTF-8.
const char *
g_mime_message_get_subject (GMimeMessage *message
);
Gets the subject of the message
.
void g_mime_message_set_date (GMimeMessage *message
,GDateTime *date
);
Sets the Date header on a MIME Message.
GDateTime *
g_mime_message_get_date (GMimeMessage *message
);
Gets the parsed date and time value from the Date header.
void g_mime_message_set_message_id (GMimeMessage *message
,const char *message_id
);
Set the Message-Id on a message.
const char *
g_mime_message_get_message_id (GMimeMessage *message
);
Gets the Message-Id header of message
.
void g_mime_message_set_mime_part (GMimeMessage *message
,GMimeObject *mime_part
);
Set the root-level MIME part of the message.
GMimeObject *
g_mime_message_get_mime_part (GMimeMessage *message
);
Gets the toplevel MIME part contained within message
.
void g_mime_message_foreach (GMimeMessage *message
,GMimeObjectForeachFunc callback
,gpointer user_data
);
Recursively calls callback
on each of the mime parts in the mime message.
message |
||
callback |
function to call on each of the mime parts contained by the mime message. |
[scope call] |
user_data |
user-supplied callback data |
GMimeObject *
g_mime_message_get_body (GMimeMessage *message
);
Attempts to identify the MIME part containing the body of the message.
a GMimeObject containing the textual content that appears to be the main body of the message.
Note: This function is NOT guaranteed to always work as it makes some assumptions that are not necessarily true. It is recommended that you traverse the MIME structure yourself.
An address type.