summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-06-16 15:12:53 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-06-16 15:12:53 +0300
commitbd431f59ca92396ca691cad3a64934c2245b420f (patch)
tree8fa5c6f628bd490696c50fcecfca4a6c01b33403 /include
parent45d54031f4e3f94d121b349b63f06c74ea1383d7 (diff)
downloadmailutils-bd431f59ca92396ca691cad3a64934c2245b420f.tar.gz
mailutils-bd431f59ca92396ca691cad3a64934c2245b420f.tar.bz2
decodemail: don't recode charsets unless explicitly requested
* decodemail/decodemail.c: New options --charset and --recode (main): Recode messages only if requested from the command line. Don't add the Content-Disposition header. * include/mailutils/util.h (mu_content_type_format): New proto. * lib/mdecode.c (charset_setup): Return immediately if charset is NULL. * libmailutils/base/ctparse.c (mu_content_type_format): New function.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mailutils/util.h b/include/mailutils/util.h
index f3aee8798..4ff036002 100644
--- a/include/mailutils/util.h
+++ b/include/mailutils/util.h
@@ -139,6 +139,8 @@ typedef struct mu_content_type *mu_content_type_t;
int mu_content_type_parse (const char *input, const char *charset,
mu_content_type_t *retct);
void mu_content_type_destroy (mu_content_type_t *pptr);
+
+int mu_content_type_format (mu_content_type_t ct, char **return_ptr);
/* ----------------------- */
/* Filter+iconv */

Return to:

Send suggestions and report system problems to the System administrator.