From b7a7bb5c1a4acad9b0fae1df2f062f661fea71cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 15 Apr 2024 12:19:54 +0200 Subject: [PATCH] make To: address configurable --- courses/list.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/courses/list.sh b/courses/list.sh index cc0deae..7152266 100755 --- a/courses/list.sh +++ b/courses/list.sh @@ -3,6 +3,7 @@ . "${_EXEC}"/pdiread.sh SUP_FIELDS="COMMENT" +MAILTO="${MAILTO:-confetti@confetti}" edit_course(){ local coursefile="$_DATA/ical/$1" @@ -69,7 +70,7 @@ print_course(){ [a .button .item href="${_BASE}/courses/edit_course.sh?course=${coursefile##*/}" $(l10n edit)] [a .button .item href="${_BASE}/courses/export_pdf.sh?course=${coursefile##*/}" target="blank" $(l10n courselist)] [a .button .item href="${_BASE}/courses/export_ical.sh?course=${coursefile##*/}" $(l10n ics_export)] - [a .button .item href="mailto:zack@vuesch.org?bcc=$(course_mail "${coursefile##*/}" |HTML)" $(l10n course_mail)] + [a .button .item href="mailto:${MAILTO}?bcc=$(course_mail "${coursefile##*/}" |HTML)" $(l10n course_mail)] ] ] EOF -- 2.39.2