remailback

send email reminders after a time period
git clone https://a3nm.net/git/remailback/
Log | Files | Refs

commit b696cfff34d4feb0b07d66f4fc8e6fc23a24dd57
parent a83ed99078efdb16a35121afbac8661d60db8976
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 10 Jan 2025 13:26:43 +0100

fail if messageid not parsed

Diffstat:
add.sh | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/add.sh b/add.sh @@ -26,6 +26,13 @@ cat > $TEMPFILE SUBJECT=$(~/bin/get_email_header subject < "$TEMPFILE") MESSAGEID=$(~/bin/get_email_header message-id < "$TEMPFILE") +if [ -z "${MESSAGEID}" ] +then + echo "Could not parse Message-Id of email; cannot add reminder" + echo "Aborting" + exit 1 +fi + # from Debian package uuid-runtime UUID=$(uuidgen)