commit b22640c496787c4e24840c534749c80e8a1c48a9
parent 237277121c659af34e771c36cd2c49561048e656
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 23 Nov 2019 17:25:23 +0100
explain where uuidgen comes from
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/add.sh b/add.sh
@@ -26,6 +26,7 @@ cat > $TEMPFILE
SUBJECT=$(get_email_header subject < "$TEMPFILE")
MESSAGEID=$(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-')