}
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##*/}"