Mstdlib-1.24.0
|
Typedefs | |
typedef struct M_email | M_email_t |
Functions | |
M_email_t * | M_email_create (void) |
void | M_email_destroy (M_email_t *email) |
M_bool | M_email_set_headers (M_email_t *email, const M_hash_dict_t *headers) |
M_bool | M_email_headers_insert (M_email_t *email, const char *key, const char *val) |
void | M_email_headers_remove (M_email_t *email, const char *key) |
const M_hash_dict_t * | M_email_headers (const M_email_t *email) |
M_bool | M_email_from (const M_email_t *email, char const **group, char const **name, char const **address) |
char * | M_email_from_field (const M_email_t *email) |
void | M_email_set_from (M_email_t *email, const char *group, const char *name, const char *address) |
size_t | M_email_to_len (const M_email_t *email) |
M_bool | M_email_to (const M_email_t *email, size_t idx, char const **group, char const **name, char const **address) |
char * | M_email_to_field (const M_email_t *email) |
void | M_email_to_append (M_email_t *email, const char *group, const char *name, const char *address) |
void | M_email_to_remove (M_email_t *email, size_t idx) |
void | M_email_to_clear (M_email_t *email) |
size_t | M_email_cc_len (const M_email_t *email) |
M_bool | M_email_cc (const M_email_t *email, size_t idx, char const **group, char const **name, char const **address) |
char * | M_email_cc_field (const M_email_t *email) |
void | M_email_cc_append (M_email_t *email, const char *group, const char *name, const char *address) |
void | M_email_cc_remove (M_email_t *email, size_t idx) |
void | M_email_cc_clear (M_email_t *email) |
size_t | M_email_bcc_len (const M_email_t *email) |
M_bool | M_email_bcc (const M_email_t *email, size_t idx, char const **group, char const **name, char const **address) |
char * | M_email_bcc_field (const M_email_t *email) |
void | M_email_bcc_append (M_email_t *email, const char *group, const char *name, const char *address) |
void | M_email_bcc_remove (M_email_t *email, size_t idx) |
void | M_email_bcc_clear (M_email_t *email) |
void | M_email_set_reply_to (M_email_t *email, const char *group, const char *name, const char *address) |
char * | M_email_reply_to_field (const M_email_t *email) |
M_bool | M_email_reply_to (const M_email_t *email, char const **group, char const **name, char const **address) |
void | M_email_reply_to_remove (M_email_t *email) |
void | M_email_set_subject (M_email_t *email, const char *subject) |
const char * | M_email_subject (const M_email_t *email) |
void | M_email_messageid (M_email_t *email, const char *prefix, const char *suffix) |
void | M_email_date (M_email_t *email, const char *format) |
const char * | M_email_preamble (const M_email_t *email) |
void | M_email_set_preamble (M_email_t *email, const char *data, size_t len) |
const char * | M_email_epilouge (const M_email_t *email) |
void | M_email_set_epilouge (M_email_t *email, const char *data, size_t len) |
void | M_email_set_mixed_multipart (M_email_t *email, M_bool is_mixed_multipart) |
M_bool | M_email_is_mixed_multipart (const M_email_t *email) |
M_bool | M_email_part_append (M_email_t *email, const char *data, size_t len, const M_hash_dict_t *headers, size_t *idx) |
M_bool | M_email_part_append_attachment (M_email_t *email, const char *data, size_t len, const M_hash_dict_t *headers, const char *content_type, const char *transfer_encoding, const char *filename, size_t *idx) |
M_bool | M_email_part_append_data (M_email_t *email, size_t idx, const char *data, size_t len) |
M_bool | M_email_part_set_data (M_email_t *email, size_t idx, const char *data, size_t len) |
size_t | M_email_parts_len (const M_email_t *email) |
void | M_email_parts_clear (M_email_t *email) |
const char * | M_email_part_data (const M_email_t *email, size_t idx) |
const M_hash_dict_t * | M_email_part_headers (const M_email_t *email, size_t idx) |
M_bool | M_email_part_is_attachmenet (const M_email_t *email, size_t idx) |
M_bool | M_email_part_attachment_info (const M_email_t *email, size_t idx, char const **content_type, char const **transfer_encoding, char const **filename) |
void | M_email_part_remove (M_email_t *email, size_t idx) |
Email Message.
typedef struct M_email M_email_t |
M_email_t * M_email_create | ( | void | ) |
Create an empty email email
return Message
void M_email_destroy | ( | M_email_t * | ) |
M_bool M_email_set_headers | ( | M_email_t * | email, |
const M_hash_dict_t * | headers | ||
) |
M_bool M_email_headers_insert | ( | M_email_t * | email, |
const char * | key, | ||
const char * | val | ||
) |
void M_email_headers_remove | ( | M_email_t * | email, |
const char * | key | ||
) |
const M_hash_dict_t * M_email_headers | ( | const M_email_t * | ) |
M_bool M_email_from | ( | const M_email_t * | email, |
char const ** | group, | ||
char const ** | name, | ||
char const ** | address | ||
) |
char * M_email_from_field | ( | const M_email_t * | ) |
void M_email_set_from | ( | M_email_t * | email, |
const char * | group, | ||
const char * | name, | ||
const char * | address | ||
) |
size_t M_email_to_len | ( | const M_email_t * | ) |
M_bool M_email_to | ( | const M_email_t * | email, |
size_t | idx, | ||
char const ** | group, | ||
char const ** | name, | ||
char const ** | address | ||
) |
char * M_email_to_field | ( | const M_email_t * | ) |
void M_email_to_append | ( | M_email_t * | email, |
const char * | group, | ||
const char * | name, | ||
const char * | address | ||
) |
void M_email_to_remove | ( | M_email_t * | email, |
size_t | idx | ||
) |
void M_email_to_clear | ( | M_email_t * | ) |
size_t M_email_cc_len | ( | const M_email_t * | ) |
M_bool M_email_cc | ( | const M_email_t * | email, |
size_t | idx, | ||
char const ** | group, | ||
char const ** | name, | ||
char const ** | address | ||
) |
char * M_email_cc_field | ( | const M_email_t * | ) |
void M_email_cc_append | ( | M_email_t * | email, |
const char * | group, | ||
const char * | name, | ||
const char * | address | ||
) |
void M_email_cc_remove | ( | M_email_t * | email, |
size_t | idx | ||
) |
void M_email_cc_clear | ( | M_email_t * | ) |
size_t M_email_bcc_len | ( | const M_email_t * | ) |
M_bool M_email_bcc | ( | const M_email_t * | email, |
size_t | idx, | ||
char const ** | group, | ||
char const ** | name, | ||
char const ** | address | ||
) |
char * M_email_bcc_field | ( | const M_email_t * | ) |
void M_email_bcc_append | ( | M_email_t * | email, |
const char * | group, | ||
const char * | name, | ||
const char * | address | ||
) |
void M_email_bcc_remove | ( | M_email_t * | email, |
size_t | idx | ||
) |
void M_email_bcc_clear | ( | M_email_t * | ) |
void M_email_set_reply_to | ( | M_email_t * | email, |
const char * | group, | ||
const char * | name, | ||
const char * | address | ||
) |
char * M_email_reply_to_field | ( | const M_email_t * | ) |
M_bool M_email_reply_to | ( | const M_email_t * | email, |
char const ** | group, | ||
char const ** | name, | ||
char const ** | address | ||
) |
void M_email_reply_to_remove | ( | M_email_t * | ) |
void M_email_set_subject | ( | M_email_t * | email, |
const char * | subject | ||
) |
const char * M_email_subject | ( | const M_email_t * | ) |
void M_email_messageid | ( | M_email_t * | email, |
const char * | prefix, | ||
const char * | suffix | ||
) |
Stamp email with randomized message id. That is, generate and assign to header "Message-ID".
[in] | The email to stamp. | |
[in] | prefix | Prefix to id string |
[in] | suffix | Suffix to id string |
void M_email_date | ( | M_email_t * | email, |
const char * | format | ||
) |
Stamp email with date. That is, generate and assign to header "Date".
[in] | The email to stamp. | |
[in] | format | Date format string. NULL defaults to "%a, %d %b %Y %T %z" |
const char * M_email_preamble | ( | const M_email_t * | ) |
void M_email_set_preamble | ( | M_email_t * | email, |
const char * | data, | ||
size_t | len | ||
) |
const char * M_email_epilouge | ( | const M_email_t * | ) |
void M_email_set_epilouge | ( | M_email_t * | email, |
const char * | data, | ||
size_t | len | ||
) |
void M_email_set_mixed_multipart | ( | M_email_t * | email, |
M_bool | is_mixed_multipart | ||
) |
M_bool M_email_is_mixed_multipart | ( | const M_email_t * | ) |
M_bool M_email_part_append | ( | M_email_t * | email, |
const char * | data, | ||
size_t | len, | ||
const M_hash_dict_t * | headers, | ||
size_t * | idx | ||
) |
M_bool M_email_part_append_attachment | ( | M_email_t * | email, |
const char * | data, | ||
size_t | len, | ||
const M_hash_dict_t * | headers, | ||
const char * | content_type, | ||
const char * | transfer_encoding, | ||
const char * | filename, | ||
size_t * | idx | ||
) |
M_bool M_email_part_append_data | ( | M_email_t * | email, |
size_t | idx, | ||
const char * | data, | ||
size_t | len | ||
) |
M_bool M_email_part_set_data | ( | M_email_t * | email, |
size_t | idx, | ||
const char * | data, | ||
size_t | len | ||
) |
size_t M_email_parts_len | ( | const M_email_t * | ) |
void M_email_parts_clear | ( | M_email_t * | ) |
const char * M_email_part_data | ( | const M_email_t * | email, |
size_t | idx | ||
) |
const M_hash_dict_t * M_email_part_headers | ( | const M_email_t * | email, |
size_t | idx | ||
) |
M_bool M_email_part_is_attachmenet | ( | const M_email_t * | email, |
size_t | idx | ||
) |
M_bool M_email_part_attachment_info | ( | const M_email_t * | email, |
size_t | idx, | ||
char const ** | content_type, | ||
char const ** | transfer_encoding, | ||
char const ** | filename | ||
) |
void M_email_part_remove | ( | M_email_t * | email, |
size_t | idx | ||
) |