1#!/bin/sh 2 3# use: georgia-tech-cellbuzz.sendmail subject file-to-mail [file-to-attach] 4# Don't forget to set the variables 'from' and 'realname' in ~/.muttrc ! 5 6sender="bvanassche@acm.org" 7recipients="valgrind-developers@lists.sourceforge.net" 8#recipients="bvanassche@acm.org" 9if [ $# -ge 3 ]; then 10 gzip -9 <"$3" >"$3.gz" 11 mutt -s "$1" -a "$3.gz" ${recipients} < "$2" 12 rm -f "$3.gz" 13else 14 mutt -s "$1" ${recipients} < "$2" 15fi 16