diff --git a/madmail.sh b/madmail.sh deleted file mode 100644 index 8e6939d..0000000 --- a/madmail.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -mailer () { -if ! [[ -z "$3" ]]; then - mailfrom="From: $3 " -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 -} diff --git a/madmail.sh b/madmail.sh new file mode 120000 index 0000000..9b84cb0 --- /dev/null +++ b/madmail.sh @@ -0,0 +1 @@ +mailer.sh \ No newline at end of file diff --git a/mailer.sh b/mailer.sh new file mode 100644 index 0000000..8e6939d --- /dev/null +++ b/mailer.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +mailer () { +if ! [[ -z "$3" ]]; then + mailfrom="From: $3 " +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 +}