.I x-unix-mode
attribute as noted above. A value of
.B 1
-suppresses both that and the \*(lqContent-Description\*(rq header, and
+suppresses that, puts the file name in the
+\*(lqContent-Description\*(rq header, and
adds a \*(lqContent-Disposition\*(rq header. A value of
.B 2
adds the file
-attachformat 1:
Content-Type: text/plain; name="VERSION"; charset="us-ascii"
+Content-Description: VERSION
Content-Disposition: attachment; filename="VERSION"
-attachformat 2:
Content-Type: text/plain; name="VERSION"; charset="us-ascii"
+Content-Description: VERSION
Content-Disposition: attachment; filename="VERSION"; modification-date="Mon, 19 Dec 2005 22:39:51 -0600"
.fi
.PP
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);
}
(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));