X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7cb4e52b1051d8f5eab4ebc157831bbfb084d22e..d2520ac7054ad75d60342606bf13c821305d958c:/h/mhparse.h?ds=inline diff --git a/h/mhparse.h b/h/mhparse.h index 9b058e68..7ade8a3c 100644 --- a/h/mhparse.h +++ b/h/mhparse.h @@ -342,6 +342,8 @@ char *ct_subtype_str (int, int); const struct str2init *get_ct_init (int); const char *ce_str (int); const struct str2init *get_ce_method (const char *); +char *content_charset (CT); +int convert_charset (CT, char *, int *); /* * Given a list of messages, display information about them on standard @@ -427,6 +429,15 @@ char *output_params(size_t initialwidth, PM params, int *offsetout, */ PM add_param(PM *first, PM *last, char *name, char *value, int nocopy); +/* + * Replace (or add) a parameter to the parameter linked list. + * + * If the named parameter already exists on the parameter linked list, + * replace the value with the new one. Otherwise add it to the linked + * list. All parameters are identical to add_param(). + */ +PM replace_param(PM *first, PM *last, char *name, char *value, int nocopy); + /* * Retrieve a parameter value from a parameter linked list. Convert to the * local character set if required.