Provide function for parsing the Content-Type header (RFC 2045).
* include/mailutils/util.h (mu_content_type, mu_param): New structs. (mu_content_type_t): New typedef. (mu_content_type_parse, mu_content_type_destroy): New protos. * libmailutils/base/ctparse.c: New file. * libmailutils/base/Makefile.am: Add new file. * imap4d/fetch.c: Use mu_content_type_parse to parse the header. * libmailutils/tests/conttype.c: New file. * libmailutils/tests/Makefile.am: Add new file.
Showing
6 changed files
with
399 additions
and
152 deletions
libmailutils/base/ctparse.c
0 → 100644
libmailutils/tests/conttype.c
0 → 100644
-
Please register or sign in to post a comment