Remove crap - postreich - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- DIR commit e675715f30aa480af109ec1d46877a51d9a7af9c DIR parent 51aadc57cdc39e4976207cad6af9b9c0f76f16d9 HTML Author: Scarlett McAllister <no+reply@roygbyte.com> Date: Sun, 28 Jan 2024 20:18:07 -0400 Remove crap Diffstat: D src/geomyidae/#sendmail.dcgi# | 52 ------------------------------- D src/geomyidae/.#sendmail.dcgi | 2 -- 2 files changed, 0 insertions(+), 54 deletions(-) --- DIR diff --git a/src/geomyidae/#sendmail.dcgi# b/src/geomyidae/#sendmail.dcgi# @@ -1,52 +0,0 @@ -#!/bin/sh -. ./api/common - -path="$2" -query="$1" - -handle=$( find_value_in_args "handle" "$path" ) -template=$( find_value_in_args "template" "$path" ) - -choose_mailbox() { - ls -x1 "api/$MAILBOXES" \ - | awk -v t="$template" \ - '{ printf "[1|%s|sendmail.dcgi?handle=%s?template=%s|localhost|70]\n", $1, $1, t }' -} - -choose_template() { - ls -x1 "api/$TEMPLATES" \ - | xargs -d '\n' -I x cat "api/$TEMPLATES/"x"/info" \ - | awk -F '\t' -v h="$handle" \ - '{ printf "[1|%s|sendmail.dcgi?template=%s?handle=%s|localhost|70]\n", $2, $1, h }' -} - -show_footer() { - printf "\n\n[1|Start over|sendmail.dcgi|localhost|70]" -} - -if [ -z "$handle" ]; then - printf "Pick recipient:\n" - choose_mailbox - show_footer - return 0 -fi - -if [ -z "$template" ]; then - printf "Pick template:\n" - choose_template - show_footer - return 0 -fi - -result=$( api/$TEMPLATES/$template/main "$path" "$query" ) -if [ ! $? -eq 0 ]; then - printf "%s" "$result" - return 0 -fi - -echo $result - -echo "ready to send" - -show_footer - DIR diff --git a/src/geomyidae/.#sendmail.dcgi b/src/geomyidae/.#sendmail.dcgi @@ -1 +0,0 @@ -roygbyte@penny.1401:1706385642 -\ No newline at end of file