From 407c7fab874cbbadae7c0f1f961dee4775599278 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 26 Apr 2020 16:52:48 -0400 Subject: Fall back to Content-Type name parameter for attachments --- export.c | 1 + 1 file changed, 1 insertion(+) (limited to 'export.c') diff --git a/export.c b/export.c index 7a04358..ab77587 100644 --- a/export.c +++ b/export.c @@ -155,6 +155,7 @@ static int exportHTMLAttachment( ); } const char *name = paramGet(part->disposition.params, "filename"); + if (!name) name = paramGet(part->params, "name"); const char *disposition = part->disposition.type; if (!disposition) disposition = "INLINE"; -- cgit 1.4.1