initial commit

This commit is contained in:
2024-03-22 07:02:10 +01:00
commit 8baec552ac
13 changed files with 623 additions and 0 deletions

14
madmail.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
mailer () {
if ! [[ -z "$3" ]]; then
mailfrom="From: $3 <mad@pogoan.de>"
fi
if ! [[ -z "$4" ]]; then
mailto="$4"
elif [[ -z "$mailto" ]]; then
mailto="christian@betz.cc"
fi
echo -e "$1" | mailx -s "$2" --append="$mailfrom" $mailto &>/dev/null
}