--- unmime.c Tue Mar 4 08:45:05 2003 +++ unmime1.c Tue Apr 8 23:28:22 2003 @@ -404,7 +404,7 @@ field = (struct mime_field *)malloc(sizeof(struct mime_field)); field->name = strdup("Content-type"); - field->value = strdup("text/plain"); + field->value = strdup("text/plain; charset=iso-8859-2"); field->params = NULL; subheader = mime_addheader(subheader,field); @@ -462,7 +462,7 @@ /* Hey, look! The EASY way to do multipart/alternative */ if (strcasecmp(mime_fieldval(header,"content-type"),"multipart/alternative") == 0) { - if (strcasecmp(mime_fieldval(subheader,"content-type"),"text/plain") != 0) + if (strcasecmp(mime_fieldval(subheader,"content-type"),"text/plain; charset=iso-8859-2") != 0) handler = NULL; } @@ -809,7 +809,7 @@ if (get_bool("unmime-moderate-mode")) { const char *content = mime_fieldval(header,"content-type"); - if (strcasecmp(content,"text/plain") == 0 || + if (strcasecmp(content,"text/plain; charset=iso-8859-2") == 0 || strcasecmp(content,"message/rfc822") == 0) { /* let's clean up our header and bail */ mime_eat_header(header); @@ -897,7 +897,7 @@ /* Handle content-type line */ else if (strncasecmp(templine,"Content-type:",13) == 0) { - write_file(outfile,"Content-type: text/plain"); + write_file(outfile,"Content-type: text/plain; charset=iso-8859-2"); /* Preserve character set if explicit */ if (charset[0]) write_file(outfile, "; charset=%s", charset);