X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=etc%2Fsendfiles;fp=etc%2Fsendfiles;h=0000000000000000000000000000000000000000;hb=aae44c933a5b035e0b23abf4dd4247cd37e4d041;hp=d53ed82e8be0ecee54eb1ab1a9b9f7b6d0981854;hpb=e1aadb9e23f706d4b19f49d1e7a6995a5b3c59e2;p=mmh diff --git a/etc/sendfiles b/etc/sendfiles deleted file mode 100755 index d53ed82..0000000 --- a/etc/sendfiles +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# $Id$ -# -# Send multiples files and/or directories as a tar/compressed -# image, in a MIME message. -# - -DELAY=0 -FROM= - -case "$1" in - -*) DELAY="`echo $1 | sed -e 's%-%%'`" - shift - ;; -esac - -if [ ! -z "$PERSON" ]; then - FROM="-from $PERSON" -fi - -if [ $# -lt 3 ]; then - echo 'usage: sendfiles: "mailpath" "subject-string" directory-or-file ...' 1>&2 - exit 1; -fi - -mailpath="$1" -echo "mailpath = $mailpath" 1>&2 -shift - -subject="$1" -echo "subject-string = $subject" 1>&2 -shift - -echo "files = $*" 1>&2 - -tar cvf - "$@" | compress | \ - viamail -to "$mailpath" -subject "$subject" \ - -parameters "type=tar; x-conversions=compress" \ - -comment "extract with uncompress | tar xvpf -" \ - -delay "$DELAY" \ - -verbose $FROM