X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsendfiles.sh;fp=uip%2Fsendfiles.sh;h=40d8f72e5bab5c913ad7edaf31870198c70e21c2;hb=0e82199cf3c991a173e0ac8aa776efdb3ded61e6;hp=0000000000000000000000000000000000000000;hpb=eda72d6a7a7c20ff123043fb7f19c509ea01f932;p=mmh diff --git a/uip/sendfiles.sh b/uip/sendfiles.sh new file mode 100755 index 0000000..40d8f72 --- /dev/null +++ b/uip/sendfiles.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Send multiples files non-interactively + +# adjust if needed +attachment_header='Attach' + + +if [ $# -lt 3 ]; then + echo 'usage: sendfiles RECIPIENT SUBJECT FILES...' 1>&2 + exit 1; +fi + +rcpt="$1" +shift +subject="$1" +shift + +cat 1>&2 <"$draft" <>"$draft" +done + +send "$draft"