if test $# -lt 3; then
  echo "Usage: tarmail1 [-k \"keyword\"] mailpath \"subject-string\" directory-or-file(s)"
  exit
else
    key="$1"
    shift
  mailpath=$1
  shift
  subject="$1"
  shift
  tar cvf - $* | compress | btoa "$key" | mail -s "$subject" $mailpath
fi
