X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsendsbr.c;h=110050d821b2e1f8d6f7f96df3a6584bebb10212;hb=6bd76adcc81f4a725352c338a39212bcdefb0a4b;hp=57ef00737c60eb84b27020247cc25308f3fdde72;hpb=8cb5a3fb4327ce476d5422dec81c2aa6d6a2c5de;p=mmh diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 57ef007..110050d 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -500,9 +500,10 @@ make_mime_composition_file_entry(char *file_name, int attachformat) least. */ (void) fprintf (composition_file, "#%s <>", content_type); } else { - /* Suppress Content-Id, insert simple Content-Disposition. */ + /* Suppress Content-Id, insert simple Content-Disposition + and Content-Description with filename. */ (void) fprintf (composition_file, - "#%s; name=\"%s\" <>{attachment}", + "#%1$s; name=\"%2$s\" <> [%2$s]{attachment}", content_type, ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1); } @@ -517,9 +518,9 @@ make_mime_composition_file_entry(char *file_name, int attachformat) (void) fprintf (composition_file, "#%s <>", content_type); } else { /* Suppress Content-Id, insert Content-Disposition with - modification date. */ + modification date and Content-Description wtih filename. */ (void) fprintf (composition_file, - "#%s; name=\"%s\" <>{attachment; modification-date=\"%s\"}", + "#%1$s; name=\"%2$s\" <>[%2$s]{attachment; modification-date=\"%3$s\"}", content_type, ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1, dtime (&st.st_mtime, 0));