]> git.marmaro.de Git - mmh/blobdiff - uip/send.c
Added Content-Description header with the filename of the attachment.
[mmh] / uip / send.c
index a735c6777e8d11ddfb136452a4c792b00b8921e5..e39ab800e6a7c8569047cca2ff2a3eb61074dc90 100644 (file)
@@ -630,9 +630,9 @@ make_mime_composition_file_entry(char *file_name)
                adios(NULL, "unable to access file `%s'", 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);
 
 
        fprintf(composition_file, " %s\n", file_name);