X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=etc%2Fsendfiles.in;h=a3545d19ba8df6e690fd4a295361d635c643dca1;hp=b443067e9441059da6a57d6184e92fd0ded33043;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=aae44c933a5b035e0b23abf4dd4247cd37e4d041 diff --git a/etc/sendfiles.in b/etc/sendfiles.in index b443067..a3545d1 100755 --- a/etc/sendfiles.in +++ b/etc/sendfiles.in @@ -1,7 +1,5 @@ #!/bin/sh # -# $Id$ -# # Send multiples files and/or directories as a tar/compressed # image, in a MIME message. # @@ -29,20 +27,25 @@ fi # handle command-line options to override compression method and delay while [ $# -gt 3 ]; do case "$1" in - -gzip) METHOD=gzip - shift - ;; - -compress) METHOD=compress - shift - ;; - -none) METHOD=none - shift - ;; - -*) DELAY="`echo $1 | sed -e 's%-%%'`" - shift - ;; - *) break - ;; + -gzip) + METHOD=gzip + shift + ;; + -compress) + METHOD=compress + shift + ;; + -none) + METHOD=none + shift + ;; + -*) + DELAY="`echo $1 | sed -e 's%-%%'`" + shift + ;; + *) + break + ;; esac done @@ -78,7 +81,7 @@ echo "files = $*" 1>&2 tar cvf - "$@" | $COMPRESS | \ %libdir%/viamail -to "$mailpath" -subject "$subject" \ - -parameters "type=tar$CONVERSION" \ - -comment "extract with $UNCOMPRESS | tar xvpf -" \ - -delay "$DELAY" \ - -verbose $FROM + -parameters "type=tar$CONVERSION" \ + -comment "extract with $UNCOMPRESS | tar xvpf -" \ + -delay "$DELAY" \ + -verbose $FROM