From 52dbd42252147a1b2c9d6e58d04be2ea0c6aea1a Mon Sep 17 00:00:00 2001 From: ashiire <31418397+ashiire@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:20:51 +0100 Subject: [PATCH] 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 --- mshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mshow.c b/mshow.c index b4463e9..d0871f2 100644 --- a/mshow.c +++ b/mshow.c @@ -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")) {