improve named part/attachment detection

will now detect filenames for parts if the part specifies Content-Disposition without a filename parameter and Content-Type with a name parameter
pull/232/head
ashiire 1 year ago committed by nay
parent da49ac5b1e
commit 52dbd42252

@ -158,7 +158,7 @@ mime_filename(struct message *msg)
static char buf[512];
char *v;
char *filename = 0;
if ((v = blaze822_hdr(msg, "content-disposition")) &&
blaze822_mime2231_parameter(v, "filename",
buf, sizeof buf, "UTF-8")) {

Loading…
Cancel
Save