151 #define cmime_part_get_content(part) (part->content);
165 #define cmime_part_get_postface(part) (part->postface);
void cmime_part_set_content(CMimePart_T *part, const char *s)
Set content for mime part.
Definition: cmime_part.c:158
char * boundary
Definition: cmime_part.h:55
char * cmime_part_to_string(CMimePart_T *part, const char *nl)
Return complete mime part as string, inclusive all mime headers.
Definition: cmime_part.c:168
CMimePart_T * cmime_part_new(void)
Creates a new CMimePart_T object.
Definition: cmime_part.c:68
int cmime_part_to_file(CMimePart_T *part, char *filename)
Create a file from CMimePart_T object.
Definition: cmime_part.c:338
char * cmime_part_get_content_type(CMimePart_T *part)
Return content type of mime part.
Definition: cmime_part.c:115
char * postface
Definition: cmime_part.h:57
int cmime_part_from_file(CMimePart_T **part, char *filename, const char *nl)
Create a CMimePart_T object from file.
Definition: cmime_part.c:221
char * cmime_part_get_content_id(CMimePart_T *part)
Return content id of mime part.
Definition: cmime_part.c:154
int cmime_part_from_string(CMimePart_T **part, const char *content)
Parse given string and create a new CMimePart_T object.
Definition: cmime_part.c:383
void cmime_part_set_postface(CMimePart_T *part, const char *s)
Set mime parts postface.
Definition: cmime_part.c:452
char * parent_boundary
Definition: cmime_part.h:56
short int last
Definition: cmime_part.h:58
A mime part.
Definition: cmime_part.h:52
void cmime_part_set_content_id(CMimePart_T *part, const char *s)
Set content id for mime part.
Definition: cmime_part.c:147
void cmime_part_set_content_type(CMimePart_T *part, const char *s)
Set the content type for a mime part.
Definition: cmime_part.c:108
void cmime_part_free(CMimePart_T *part)
Frees a CMimePart_T object.
Definition: cmime_part.c:87
CMimeList_T * headers
Definition: cmime_part.h:53
char * cmime_part_get_content_transfer_encoding(CMimePart_T *part)
Return content transfer encoding of mime part.
Definition: cmime_part.c:141
Double linked list implementation.
Definition: cmime_list.h:55
Defines functions and structs for double linked list.
char * cmime_part_get_content_disposition(CMimePart_T *part)
Return content disposition of mime part.
Definition: cmime_part.c:128
char * content
Definition: cmime_part.h:54
void cmime_part_set_content_disposition(CMimePart_T *part, const char *s)
Set content disposition for mime part.
Definition: cmime_part.c:121
void cmime_part_set_content_transfer_encoding(CMimePart_T *part, const char *s)
Set content transfer encoding for mime part.
Definition: cmime_part.c:134