remailback

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

commit ce66c4114367b657173337ef07ce497d76514b39
parent 38600b7c90da7b13758d6bc6a452aaf0d8aff0c2
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 11 Dec 2019 09:25:53 +0100

absolute paths for custom scripts

Diffstat:
add.sh | 4++--
delete.sh | 2+-
poll.sh | 6+++---
show.sh | 2+-
4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/add.sh b/add.sh @@ -23,8 +23,8 @@ cat > $TEMPFILE # get_email_header command from https://a3nm.net/git/mybin -SUBJECT=$(get_email_header subject < "$TEMPFILE") -MESSAGEID=$(get_email_header message-id < "$TEMPFILE") +SUBJECT=$(~/bin/get_email_header subject < "$TEMPFILE") +MESSAGEID=$(~/bin/get_email_header message-id < "$TEMPFILE") # from Debian package uuid-runtime UUID=$(uuidgen) diff --git a/delete.sh b/delete.sh @@ -11,7 +11,7 @@ cat > $TEMPFILE # get_email_header command from https://a3nm.net/git/mybin -MESSAGEID=$(get_email_header message-id < "$TEMPFILE") +MESSAGEID=$(~/get_email_header message-id < "$TEMPFILE") # adapted from https://stackoverflow.com/a/169969 ( diff --git a/poll.sh b/poll.sh @@ -36,14 +36,14 @@ CDATEA=$(($CDATE + 300)) FILE="scheduled/$FILENAME" # get_email_header and prepare_email_forward commands from https://a3nm.net/git/mybin - SUBJECT=$(get_email_header subject < $FILE) - MESSAGEID=$(get_email_header message-id < $FILE) + SUBJECT=$(~/bin/get_email_header subject < $FILE) + MESSAGEID=$(~/bin/get_email_header message-id < $FILE) mkdir -p sent sent_reminders scheduled_reminders # note: we may overwrite a file here # in case it's not the first time we try to send the reminder - prepare_email_forward "$EMAIL" "$EMAIL" "PING: $SUBJECT: $EXPL" "$MESSAGEID" "$FILE" "$EXPL" \ + ~/bin/prepare_email_forward "$EMAIL" "$EMAIL" "PING: $SUBJECT: $EXPL" "$MESSAGEID" "$FILE" "$EXPL" \ > "scheduled_reminders/$FILENAME" sendmail -t < "scheduled_reminders/$FILENAME" if [ $? -ne 0 ] diff --git a/show.sh b/show.sh @@ -11,7 +11,7 @@ cat > $TEMPFILE # get_email_header command from https://a3nm.net/git/mybin -MESSAGEID=$(get_email_header message-id < "$TEMPFILE") +MESSAGEID=$(~/bin/get_email_header message-id < "$TEMPFILE") rm -f "$TEMPFILE"