3 #include <libetpan/libetpan.h>
4 #include <libetpan/mailmime.h>
5 #include <libetpan/mailmime_encode.h>
7 struct mailmime * part_new_empty(
8 struct mailmime_content * content,
9 struct mailmime_fields * mime_fields,
13 struct mailmime * get_pgp_encrypted_part(void);
15 struct mailmime * get_text_part(
16 const char * filename,
17 const char * mime_type,
23 struct mailmime * get_file_part(
24 const char * filename,
25 const char * mime_type,
30 struct mailmime * part_multiple_new(const char *type);
32 typedef void *(*_new_func_t)(void *);
34 struct mailimf_field * _new_field(
40 void _free_field(struct mailimf_field *field);
49 struct mailimf_date_time * timestamp_to_etpantime(const struct tm *ts);
50 struct tm * etpantime_to_timestamp(const struct mailimf_date_time *et);
52 struct mailimf_mailbox * mailbox_from_string(
57 struct mailimf_field * create_optional_field(
62 int _append_optional_field(
68 clist * _get_fields(struct mailmime * mime);
69 struct mailmime_content * _get_content(struct mailmime * mime);
70 char * _get_filename(struct mailmime *mime);
71 bool _is_multipart(struct mailmime_content *content, const char *subtype);
72 bool _is_PGP_MIME(struct mailmime_content *content);
73 bool _is_text_part(struct mailmime_content *content, const char *subtype);
74 char * _get_content_type(struct mailmime_content *content);