]> git.plutz.net Git - confetti/commitdiff
make To: address configurable
authorPaul Hänsch <paul@plutz.net>
Mon, 15 Apr 2024 10:19:54 +0000 (12:19 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 15 Apr 2024 10:19:54 +0000 (12:19 +0200)
courses/list.sh

index cc0deae382f77cd2a22c016c1a5af10c28e40a45..71522667640a8d57a24824782f2e61544ceee891 100755 (executable)
@@ -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