1 : run this script through /bin/sh
2 : '@(#)$Id: viamail.sh,v 1.5 1993/10/26 16:05:23 jromine Exp $'
6 -*) DELAY="`echo $1 | sed -e 's%-%%'`"
10 if [ ! -z "$PERSON" ]; then
11 FROM="-viafrom $PERSON"
15 echo 'usage: viamail: "mailpath" "subject-string" directory-or-file ...' 1>&2
20 echo "mailpath = $mailpath" 1>&2
24 echo "subject-string = $subject" 1>&2
27 echo "files = $*" 1>&2
29 tar cvf - "$@" | compress | \
30 mhn -viamail "$mailpath" -viasubj "$subject" \
31 -viaparm "type=tar; x-conversions=compress" \
32 -viacmnt "extract with uncompress | tar xvpf -" \