Details
enum GMimePartEncodingType
enum GMimePartEncodingType {
GMIME_PART_ENCODING_DEFAULT,
GMIME_PART_ENCODING_7BIT,
GMIME_PART_ENCODING_8BIT,
GMIME_PART_ENCODING_BASE64,
GMIME_PART_ENCODING_QUOTEDPRINTABLE,
GMIME_PART_NUM_ENCODINGS
}; |
struct GMimePartDispositionParam
struct GMimePartDispositionParam; |
struct GMimePartDisposition
struct GMimePartDisposition {
gchar *disposition;
GList *params; /* of type GMimeParam */
GHashTable *param_hash;
}; |
struct GMimePart
struct GMimePart {
gchar *description;
gchar *content_id;
GMimeContentType *mime_type;
GMimePartEncodingType encoding;
GMimePartDisposition *disposition;
GByteArray *content;
GList *children; /* of type GMimePart */
}; |
GMimePartFunc ()
void (*GMimePartFunc) (GMimePart *part,
gpointer data); |
g_mime_part_new_with_type ()
GMimePart* g_mime_part_new_with_type (const gchar *type,
const gchar *subtype); |
g_mime_part_destroy ()
void g_mime_part_destroy (GMimePart *mime_part); |
Releases all memory used by this mime part and all child mime parts.
g_mime_part_set_content_description ()
void g_mime_part_set_content_description
(GMimePart *mime_part,
const gchar *description); |
Set the content description for the specified mime part.
g_mime_part_get_content_description ()
const gchar* g_mime_part_get_content_description
(const GMimePart *mime_part); |
g_mime_part_set_content_id ()
void g_mime_part_set_content_id (GMimePart *mime_part,
const gchar *content_id); |
Set the content id for the specified mime part.
g_mime_part_get_content_id ()
const gchar* g_mime_part_get_content_id (GMimePart *mime_part); |
g_mime_part_set_content_type ()
Set the content type/subtype for the specified mime part.
g_mime_part_get_content_type ()
g_mime_part_set_encoding ()
Set the content encoding for the specified mime part. Available
values for the encoding are: GMIME_PART_ENCODING_DEFAULT,
GMIME_PART_ENCODING_7BIT, GMIME_PART_ENCODING_8BIT,
GMIME_PART_ENCODING_BASE64 and GMIME_PART_ENCODING_QUOTEDPRINTABLE.
g_mime_part_get_encoding ()
g_mime_part_encoding_to_string ()
g_mime_part_encoding_from_string ()
g_mime_part_set_content_disposition ()
void g_mime_part_set_content_disposition
(GMimePart *mime_part,
const gchar *disposition); |
Set the content disposition for the specified mime part
g_mime_part_get_content_disposition ()
const gchar* g_mime_part_get_content_disposition
(GMimePart *mime_part); |
g_mime_part_add_content_disposition_parameter ()
void g_mime_part_add_content_disposition_parameter
(GMimePart *mime_part,
const gchar *name,
const gchar *value); |
Add a content-disposition parameter to the specified mime part.
g_mime_part_get_content_disposition_parameter ()
const gchar* g_mime_part_get_content_disposition_parameter
(GMimePart *mime_part,
const gchar *name); |
g_mime_part_set_filename ()
void g_mime_part_set_filename (GMimePart *mime_part,
const gchar *filename); |
Sets the "filename" parameter on the Content-Disposition and also sets the
"name" parameter on the Content-Type.
g_mime_part_get_filename ()
const gchar* g_mime_part_get_filename (GMimePart *mime_part); |
g_mime_part_set_boundary ()
void g_mime_part_set_boundary (GMimePart *mime_part,
const gchar *boundary); |
Sets the boundary on the mime part.
g_mime_part_get_boundary ()
const gchar* g_mime_part_get_boundary (GMimePart *mime_part); |
g_mime_part_set_content ()
void g_mime_part_set_content (GMimePart *mime_part,
const char *content,
guint len); |
Sets the content of the Mime Part (only non-multiparts)
g_mime_part_set_pre_encoded_content ()
Sets the encoding type and raw content on the mime part after decoding the content.
g_mime_part_get_content ()
const gchar* g_mime_part_get_content (const GMimePart *mime_part,
guint *len); |
g_mime_part_add_subpart ()
Adds a subpart to the parent mime part which *must* be a
multipart.
g_mime_part_add_child()
#define g_mime_part_add_child(mime_part, child) |
g_mime_part_to_string ()
gchar* g_mime_part_to_string (GMimePart *mime_part,
gboolean toplevel); |
g_mime_part_foreach ()
Calls callback on mime_part and each of it's subparts.
g_mime_part_get_subpart_from_content_id ()
const GMimePart* g_mime_part_get_subpart_from_content_id
(GMimePart *mime_part,
const gchar *content_id); |