Browse Source

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)
pull/2810/head^2^2
Evgeny 5 years ago
committed by GitHub
parent
commit
5e3ce44f09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      acme.sh

5
acme.sh

@ -6069,6 +6069,11 @@ _send_notify() {
_nhooks="$3" _nhooks="$3"
_nerror="$4" _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 if [ "$NOTIFY_LEVEL" = "$NOTIFY_LEVEL_DISABLE" ]; then
_debug "The NOTIFY_LEVEL is $NOTIFY_LEVEL, disabled, just return." _debug "The NOTIFY_LEVEL is $NOTIFY_LEVEL, disabled, just return."
return 0 return 0

Loading…
Cancel
Save