projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated all man pages and renamed install-mh.man to mmh.man.
[mmh]
/
etc
/
sendfiles.in
diff --git
a/etc/sendfiles.in
b/etc/sendfiles.in
index
b443067
..
5582b2a
100755
(executable)
--- a/
etc/sendfiles.in
+++ b/
etc/sendfiles.in
@@
-1,12
+1,9
@@
#!/bin/sh
#
#!/bin/sh
#
-# $Id$
-#
# Send multiples files and/or directories as a tar/compressed
# image, in a MIME message.
#
# Send multiples files and/or directories as a tar/compressed
# image, in a MIME message.
#
-DELAY=0
FROM=
# compression method (none, gzip or compress)
FROM=
# compression method (none, gzip or compress)
@@
-26,23
+23,24
@@
elif command -v gzip >/dev/null 2>&1 ; then
METHOD=gzip
fi
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
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
esac
done
@@
-78,7
+76,6
@@
echo "files = $*" 1>&2
tar cvf - "$@" | $COMPRESS | \
%libdir%/viamail -to "$mailpath" -subject "$subject" \
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