Details
enum GMimePartEncodingType
typedef enum {
GMIME_PART_ENCODING_DEFAULT,
GMIME_PART_ENCODING_7BIT,
GMIME_PART_ENCODING_8BIT,
GMIME_PART_ENCODING_BASE64,
GMIME_PART_ENCODING_QUOTEDPRINTABLE,
GMIME_PART_NUM_ENCODINGS
} GMimePartEncodingType; |
struct GMimePartDispositionParam
struct GMimePartDispositionParam; |
struct GMimePartDisposition
struct GMimePartDisposition {
char *disposition;
GList *params; /* of type GMimeParam */
GHashTable *param_hash;
}; |
struct GMimePart
struct GMimePart {
GMimeContentType *mime_type;
GMimePartEncodingType encoding;
GMimePartDisposition *disposition;
char *description;
char *content_id;
char *content_md5;
char *content_location;
GMimeDataWrapper *content;
guint append_save;
guint append_state;
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 char *type,
const char *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 char *description); |
Set the content description for the specified mime part.
g_mime_part_get_content_description ()
const char* 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 char *content_id); |
Set the content id for the specified mime part.
g_mime_part_get_content_id ()
const char* g_mime_part_get_content_id (GMimePart *mime_part); |
g_mime_part_set_content_md5 ()
void g_mime_part_set_content_md5 (GMimePart *mime_part,
const char *content_md5); |
Set the content md5 for the specified mime part.
g_mime_part_get_content_md5 ()
const char* g_mime_part_get_content_md5 (GMimePart *mime_part); |
g_mime_part_verify_content_md5 ()
gboolean g_mime_part_verify_content_md5 (GMimePart *mime_part); |
Verify the content md5 for the specified mime part.
g_mime_part_set_content_location ()
void g_mime_part_set_content_location
(GMimePart *mime_part,
const char *content_location); |
Set the content location for the specified mime part.
g_mime_part_get_content_location ()
const char* g_mime_part_get_content_location
(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 char *disposition); |
Set the content disposition for the specified mime part
g_mime_part_get_content_disposition ()
const char* 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 char *name,
const char *value); |
Add a content-disposition parameter to the specified mime part.
g_mime_part_get_content_disposition_parameter ()
const char* g_mime_part_get_content_disposition_parameter
(GMimePart *mime_part,
const char *name); |
g_mime_part_set_filename ()
void g_mime_part_set_filename (GMimePart *mime_part,
const char *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 char* g_mime_part_get_filename (const GMimePart *mime_part); |
g_mime_part_set_boundary ()
void g_mime_part_set_boundary (GMimePart *mime_part,
const char *boundary); |
Sets the boundary on the mime part.
g_mime_part_get_boundary ()
const char* 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_set_content_byte_array ()
void g_mime_part_set_content_byte_array
(GMimePart *mime_part,
GByteArray *content); |
Sets the content of the Mime Part (only non-multiparts)
g_mime_part_set_content_stream ()
g_mime_part_get_content ()
const char* g_mime_part_get_content (const GMimePart *mime_part,
guint *len); |
g_mime_part_get_content_object ()
g_mime_part_set_content_object ()
Sets the content object on the mime part.
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_write_to_stream ()
Writes the contents of the MIME Part to stream.
g_mime_part_to_string ()
char* g_mime_part_to_string (GMimePart *mime_part); |
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 char *content_id); |