summaryrefslogtreecommitdiff
path: root/nightly/conf/georgia-tech-cellbuzz-cross.sendmail
diff options
context:
space:
mode:
Diffstat (limited to 'nightly/conf/georgia-tech-cellbuzz-cross.sendmail')
-rwxr-xr-xnightly/conf/georgia-tech-cellbuzz-cross.sendmail15
1 files changed, 13 insertions, 2 deletions
diff --git a/nightly/conf/georgia-tech-cellbuzz-cross.sendmail b/nightly/conf/georgia-tech-cellbuzz-cross.sendmail
index 6463484c..3720e0e6 100755
--- a/nightly/conf/georgia-tech-cellbuzz-cross.sendmail
+++ b/nightly/conf/georgia-tech-cellbuzz-cross.sendmail
@@ -1,4 +1,15 @@
+#!/bin/sh
-# use: georgia-tech-cellbuzz.sendmail subject file-to-mail
+# use: georgia-tech-cellbuzz.sendmail subject file-to-mail [file-to-attach]
+# Don't forget to set the variables 'from' and 'realname' in ~/.muttrc !
-/bin/mailx -s "$1" valgrind-developers@lists.sourceforge.net -- -R bart.vanassche@gmail.com -r bart.vanassche@gmail.com < $2
+sender="bart.vanassche@gmail.com"
+recipients="valgrind-developers@lists.sourceforge.net"
+#recipients="bart.vanassche@gmail.com"
+if [ $# -ge 3 ]; then
+ gzip -9 <"$3" >"$3.gz"
+ mutt -s "$1" -a "$3.gz" ${recipients} < "$2"
+ rm -f "$3.gz"
+else
+ mutt -s "$1" ${recipients} < "$2"
+fi