X-Git-Url: https://git.sthu.org/?p=smailq.git;a=blobdiff_plain;f=sendmail;h=8a9df55bccabb04e3b07a2b76ff7c17805e2b4fe;hp=31cffc782310d1795633dc60eabe7ca5a107999d;hb=HEAD;hpb=6033099316d2081a9502bb066908a1ac670e519b diff --git a/sendmail b/sendmail deleted file mode 100755 index 31cffc7..0000000 --- a/sendmail +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# 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 -