From 764ff918bd5f4334f4ff6972699b281299e45135 Mon Sep 17 00:00:00 2001 From: tyrolyean Date: Fri, 1 May 2020 11:28:35 +0200 Subject: [PATCH] Actually use html function Signed-off-by: tyrolyean --- include/mail.h | 1 + src/attach.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mail.h b/include/mail.h index d362ef5..3a98c8a 100644 --- a/include/mail.h +++ b/include/mail.h @@ -72,6 +72,7 @@ struct email_t{ int append_header(struct email_t* mail, const char* key, const char* value); int append_to_header(struct email_t* mail, const char* pair); int append_to_body(struct email_t* mail, const char* text); +int append_to_html_body(struct email_t* mail, const char* text); int remove_mail(struct email_t* mail); struct email_t* get_root_mail(struct email_t* mail); diff --git a/src/attach.c b/src/attach.c index d117b4d..c0a26e3 100644 --- a/src/attach.c +++ b/src/attach.c @@ -475,7 +475,7 @@ int replace_files(struct email_t* mail, const char* dirname, bool* created){ append_to_body(txt_app, text_buffer); } if(html_app != NULL){ - append_to_body(html_app, html_buffer); + append_to_html_body(html_app, html_buffer); }