From 9169267348bbe4cfc7923ca0d535d4eba89a734e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 14 Apr 2022 15:15:27 +0200 Subject: [PATCH] multipart test stub --- attachment.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/attachment.sh b/attachment.sh index b5e8491..d004b0d 100755 --- a/attachment.sh +++ b/attachment.sh @@ -61,7 +61,14 @@ attachment_convert(){ } if [ "${PATH_INFO%/\[attachment\]/}" != "${PATH_INFO}" ]; then - theme_attachments "${PATH_INFO%\[attachment\]/}" + . "$_EXEC/multipart.sh" + if multipart_cache; then + debug 'Multipart "file":' + multipart file |hd |debug >/dev/null + REDIRECT "${_BASE}${PATH_INFO}" + else + theme_attachments "${PATH_INFO%\[attachment\]/}" + fi elif [ "${PATH_INFO%/\[attachment\]/*}" != "${PATH_INFO}" ]; then attpath="${PATH_INFO%/\[attachment\]/*}/#attachments/${PATH_INFO##*/}" -- 2.39.2