src/etpan_mime.h
author vb
Mon, 09 Feb 2015 09:49:26 -0500
changeset 59 88429085f8da
parent 48 9ff5d2dfa75a
child 89 aef5a4bc78f3
permissions -rw-r--r--
...
vb@48
     1
#pragma once
vb@48
     2
vb@48
     3
#include <libetpan/libetpan.h>
vb@48
     4
vb@48
     5
vb@48
     6
struct mailmime * part_new_empty(
vb@48
     7
        struct mailmime_content * content,
vb@48
     8
        struct mailmime_fields * mime_fields,
vb@48
     9
        const char * boundary_prefix,
vb@48
    10
        int force_single
vb@48
    11
    );
vb@48
    12
vb@48
    13
struct mailmime * get_text_part(
vb@48
    14
        const char * mime_type,
vb@48
    15
        const char * text,
vb@48
    16
        size_t length,
vb@48
    17
        int encoding_type
vb@48
    18
    );
vb@48
    19
vb@59
    20
struct mailmime * get_file_part(
vb@59
    21
        const char * filename,
vb@59
    22
        const char * mime_type,
vb@59
    23
        char * data,
vb@59
    24
        size_t length
vb@59
    25
    );
vb@59
    26
vb@48
    27
struct mailmime * part_multiple_new(
vb@48
    28
        const char * type,
vb@48
    29
        const char * boundary_prefix
vb@48
    30
    );
vb@48
    31