X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsend.c;h=e39ab800e6a7c8569047cca2ff2a3eb61074dc90;hb=3e300b97e9a54a3157e37948f8827abbe3eecf05;hp=a735c6777e8d11ddfb136452a4c792b00b8921e5;hpb=5f08476e3bc5c134ce57d924b01d1c1fcacd53db;p=mmh diff --git a/uip/send.c b/uip/send.c index a735c67..e39ab80 100644 --- a/uip/send.c +++ b/uip/send.c @@ -630,9 +630,9 @@ make_mime_composition_file_entry(char *file_name) adios(NULL, "unable to access file `%s'", file_name); } - fprintf(composition_file, "#%s; name=\"%s\" <>{attachment}", - content_type, - (!(cp = strrchr(file_name, '/'))) ? file_name : cp + 1); + cp = (!(cp = strrchr(file_name, '/'))) ? file_name : cp + 1; + fprintf(composition_file, "#%s; name=\"%s\" <> [%s] {attachment}", + content_type, cp, cp); fprintf(composition_file, " %s\n", file_name);