X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=etc%2Fsendfiles.in;h=5582b2a86f486cec798bedcbd21deec3cf0420d0;hb=eda72d6a7a7c20ff123043fb7f19c509ea01f932;hp=85ec6f0fd7fa104e67b5310a647796415bff50f6;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/etc/sendfiles.in b/etc/sendfiles.in index 85ec6f0..5582b2a 100755 --- a/etc/sendfiles.in +++ b/etc/sendfiles.in @@ -4,7 +4,6 @@ # image, in a MIME message. # -DELAY=0 FROM= # compression method (none, gzip or compress) @@ -24,23 +23,24 @@ elif command -v gzip >/dev/null 2>&1 ; then METHOD=gzip fi -# handle command-line options to override compression method and delay +# handle command-line options to override compression method 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 + ;; + *) + break + ;; esac done @@ -76,7 +76,6 @@ 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 -" \ + -verbose $FROM