From 5e3ce44f09c9994ea77ac6befb7ab4aed3a346a4 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 26 Mar 2020 23:27:04 +0800 Subject: [PATCH] add MAIL_SUBJECT_SUFFIX variable One can add variable in account.conf like this for notification be more clear on what server this occurs: MAIL_SUBJECT_SUFFIX=$(curl ifconf.me) or with wget MAIL_SUBJECT_SUFFIX=$(wget -q -O - ifconf.me) --- acme.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acme.sh b/acme.sh index f5e79ee8..47e157f8 100755 --- a/acme.sh +++ b/acme.sh @@ -6069,6 +6069,11 @@ _send_notify() { _nhooks="$3" _nerror="$4" + if [ ! -z "$MAIL_SUBJECT_SUFFIX" ]; then + _nsubject="$_nsubject $MAIL_SUBJECT_SUFFIX" + _debug "The MAIL_SUBJECT_SUFFIX is $MAIL_SUBJECT_SUFFIX." + fi + if [ "$NOTIFY_LEVEL" = "$NOTIFY_LEVEL_DISABLE" ]; then _debug "The NOTIFY_LEVEL is $NOTIFY_LEVEL, disabled, just return." return 0