X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;h=2d9a7d42737d610fe28d449effde9e7fe71b933a;hp=f8384f7ca8cbd13981af67f5b937b46a380cd9dc;hb=8a1006b457cdc27c40b9c928dc9fb5086444f04b;hpb=3f5557dc09fc17ede9a35059f36920abb2eb4d08;ds=sidebyside diff --git a/uip/sendsbr.c b/uip/sendsbr.c index f8384f7..2d9a7d4 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -498,8 +498,9 @@ make_mime_composition_file_entry(char *file_name, int attachformat) } else { /* Suppress Content-Id, insert simple Content-Disposition. */ (void) fprintf (composition_file, - "#%s <>{attachment}", - content_type); + "#%s; name=\"%s\" <>{attachment}", + content_type, + ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1); } break; @@ -514,8 +515,9 @@ make_mime_composition_file_entry(char *file_name, int attachformat) /* Suppress Content-Id, insert Content-Disposition with modification date. */ (void) fprintf (composition_file, - "#%s <>{attachment; modification-date=\"%s\"}", + "#%s; name=\"%s\" <>{attachment; modification-date=\"%s\"}", content_type, + ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1, dtime (&st.st_mtime, 0)); }