Improve attachment creation API.
* include/mailutils/message.h (mu_attachment_create) (mu_attachment_copy_from_stream) (mu_attachment_copy_from_file): New functions. * libmailutils/mime/attachment.c: Likewise. (mu_message_create_attachment): Rewrite using the three functions above.
Showing
2 changed files
with
165 additions
and
54 deletions
-
Please register or sign in to post a comment