X-Git-Url: https://git.sthu.org/?p=smailq.git;a=blobdiff_plain;f=sendmail;fp=sendmail;h=0000000000000000000000000000000000000000;hp=8a9df55bccabb04e3b07a2b76ff7c17805e2b4fe;hb=7a102a5e45835cca2a5902a2ae83a9cdfe105e93;hpb=2e355565092fb8b1121dd4bb335c9ae1c69ba9df diff --git a/sendmail b/sendmail deleted file mode 100755 index 8a9df55..0000000 --- a/sendmail +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2013 Stefan Huber - -set -e - -CMD="$(dirname $0)/smailq" -options= -list="0" - -usage() { - cat << EOF -A wrapper script for smailq that behaves like sendmail. - -USAGE: - $0 [OPTIONS] [recipient ...] - $0 --help - -It simply calls '$CMD --send -- [OPTIONS] [recipient ...]'. In -particular, it passes all options as MSA options to smailq. -EOF -} - - -options=() -while [ $# -gt "0" ]; do - if [ "$1" == "-bp" ]; then - list="1" - else - options+=("$1") - fi - shift -done - -if [ "$list" = "1" ]; then - smailq --list -else - smailq --send -- "${options[@]}" -fi -