void free_ctinfo (CT);
void free_encoding (CT, int);
-/*
- * prototypes
- */
-CT build_mime (char *, int);
-
/*
* static prototypes
*/
*/
CT
-build_mime (char *infile, int directives)
+build_mime (char *infile, int directives, int header_encoding)
{
int compnum, state;
char buf[BUFSIZ], name[NAMESZ];
*/
for (hp = ct->c_first_hf; hp != NULL; hp = hp->next) {
- if (encode_rfc2047(hp->name, &hp->value, CE_UNKNOWN, NULL)) {
+ if (encode_rfc2047(hp->name, &hp->value, header_encoding, NULL)) {
adios(NULL, "Unable to encode header \"%s\"", hp->name);
}
}