index.cgi - postreich - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- index.cgi (438B) --- 1 #!/bin/sh 2 3 . ./common 4 5 path=$( sanitize_restful_path "$TRAVERSAL" ) 6 args="$2" 7 8 handle=$( find_handle_in_path "$path" ) 9 10 case "$path" in 11 /mailbox/create/*) 12 ./create-mailbox "$handle" "$args" 13 ;; 14 /mailbox/get/*) 15 ./get-mailbox -c "$handle" 16 ;; 17 /mail/send/*) 18 template=$( find_value_in_args "template" "$args" ) 19 message=$( find_value_in_args "message" "$args" ) 20 ./send-mail -h "$handle" -t "$template" -m "$message" 21 ;; 22 esac 23