use file names for attachments

This commit is contained in:
rsc 2006-06-30 04:53:51 +00:00
parent e6c443621b
commit 141d600972
4 changed files with 8 additions and 4 deletions

View file

@ -604,9 +604,8 @@ filedata(int type, Box *box, Msg *msg, Part *part, char **pp, int *len, int *fre
fmtprint(&fmt, "type %s\n", part->type);
if(part->lines)
fmtprint(&fmt, "lines %d\n", part->lines);
/* fmtprint(&fmt, "disposition %s\", ""); */
/* fmtprint(&fmt, "filename %s\n", ""); */
/* fmtprint(&fmt, "digest %s\n", ""); */
if(part->filename)
fmtprint(&fmt, "filename %s\n", part->filename);
s = fmtstrflush(&fmt);
if(s == nil)
s = estrdup("");