...
1 // This file is under GNU General Public License 3.0
6 #include <libetpan/libetpan.h>
7 #include <libetpan/mailmime.h>
8 #include <libetpan/mailmime_encode.h>
10 #include "resource_id.h"
12 struct mailmime * part_new_empty(
13 struct mailmime_content * content,
14 struct mailmime_fields * mime_fields,
18 struct mailmime * get_pgp_encrypted_part(void);
20 struct mailmime * get_text_part(
21 pEp_rid_list_t* resource,
22 const char * mime_type,
28 struct mailmime * get_file_part(
29 pEp_rid_list_t* resource,
30 const char * mime_type,
36 struct mailmime * part_multiple_new(const char *type);
38 typedef void *(*_new_func_t)(void *);
40 struct mailimf_field * _new_field(
46 void _free_field(struct mailimf_field *field);
55 struct mailimf_date_time * timestamp_to_etpantime(const struct tm *ts);
56 struct tm * etpantime_to_timestamp(const struct mailimf_date_time *et);
58 struct mailimf_mailbox * mailbox_from_string(
63 struct mailimf_field * create_optional_field(
68 int _append_optional_field(
74 clist * _get_fields(struct mailmime * mime);
75 struct mailmime_content * _get_content(struct mailmime * mime);
76 char * _get_filename_or_cid(struct mailmime *mime);
77 pEp_rid_list_t* _get_resource_id_list(struct mailmime *mime);
78 char* _build_uri(char* uri_prefix, char* resource);
79 bool _is_multipart(struct mailmime_content *content, const char *subtype);
80 bool _is_PGP_MIME(struct mailmime_content *content);
81 bool _is_text_part(struct mailmime_content *content, const char *subtype);
82 bool must_field_value_be_encoded(const char* field_value);
83 bool must_chunk_be_encoded(const void* value, size_t size, bool ignore_fws);
86 int _get_content_type(
87 const struct mailmime_content *content,