commit edd57af862bebb737e9e1d703bb642ebec7207d2 parent 3c19e0adaf818c8cb4fdca32126a61812dda1e3d Author: Antoine Amarilli <a3nm@a3nm.net> Date: Thu, 30 Apr 2020 13:54:53 +0200 file name too long Diffstat:
add.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/add.sh b/add.sh @@ -29,7 +29,7 @@ MESSAGEID=$(~/bin/get_email_header message-id < "$TEMPFILE") # from Debian package uuid-runtime UUID=$(uuidgen) -FILENAME=$(echo "${MESSAGEID}_${SUBJECT}_${TDATE}_${REASON}_${UUID}" | tr -dc 'a-zA-Z@._0-9-') +FILENAME=$(echo "${MESSAGEID}_${SUBJECT}_${TDATE}_${REASON}_${UUID}" | tr -dc 'a-zA-Z@._0-9-' | rev | cut -b1,255 | rev) mkdir -p scheduled