# image, in a MIME message.
#
-DELAY=0
FROM=
# compression method (none, gzip or compress)
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
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