X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pages%2Femail.sh;h=c79876fe23476c22e20ce8d859aefc4eab1ed3b2;hp=c4c8a21fac512c1f95da509eb570228b9239794f;hb=8cd89ca352c63baf4655fc60952f27ec4a6e3408;hpb=1e8f35fa92c610b540cbe365e2231194b58e0cc0 diff --git a/pages/email.sh b/pages/email.sh index c4c8a21..c79876f 100755 --- a/pages/email.sh +++ b/pages/email.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/zsh # Copyright 2014 Paul Hänsch # @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . -[ -z "$_GET[\"order\"]" ] && _GET["order"]=DOW +[ -z "${_GET[order]}" ] && _GET[order]=DOW listcards() { ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do @@ -32,17 +32,3 @@ listcourses() { echo "$(date -d "$icstime" "+%u %H%M%S")\t$file" done |sort |sed -r 's:^.*\t(.*/)([^/]+)$:\2:' } - -case "$1" in - title) - echo "Email" - ;; - css) - . ${_EXEC}/templates/email.css.sh - ;; - body) - . ${_EXEC}/templates/text_email.sh - . ${_EXEC}/templates/email.html.sh - ;; -esac -