Removed note from BUGS section of several man pages saying
[mmh] / docs / historical / mh-6.8.5 / support / general / viamail.sh
1 : run this script through /bin/sh
2 : '@(#)$Id: viamail.sh,v 1.5 1993/10/26 16:05:23 jromine Exp $'
3
4 DELAY=0 FROM=
5 case "$1" in
6     -*) DELAY="`echo $1 | sed -e 's%-%%'`"
7         shift
8         ;;
9 esac
10 if [ ! -z "$PERSON" ]; then
11     FROM="-viafrom $PERSON"
12 fi
13
14 if [ $# -lt 3 ]; then
15     echo 'usage: viamail: "mailpath" "subject-string" directory-or-file ...' 1>&2
16     exit 1;
17 fi
18
19 mailpath="$1"
20 echo "mailpath = $mailpath" 1>&2
21 shift
22
23 subject="$1"
24 echo "subject-string = $subject" 1>&2
25 shift
26
27 echo "files = $*" 1>&2
28
29 tar cvf - "$@" | compress | \
30     mhn -viamail "$mailpath" -viasubj "$subject" \
31         -viaparm "type=tar; x-conversions=compress" \
32         -viacmnt "extract with uncompress | tar xvpf -" \
33         -viadelay "$DELAY" \
34         -verbose $FROM