|
From: <sv...@va...> - 2009-01-13 09:22:30
|
Author: bart
Date: 2009-01-13 09:22:19 +0000 (Tue, 13 Jan 2009)
New Revision: 8948
Log:
Compress the file passed as the third argument before attaching it to the outgoing e-mail.
Modified:
trunk/nightly/conf/georgia-tech-cellbuzz-native.sendmail
Modified: trunk/nightly/conf/georgia-tech-cellbuzz-native.sendmail
===================================================================
--- trunk/nightly/conf/georgia-tech-cellbuzz-native.sendmail 2009-01-13 08:22:05 UTC (rev 8947)
+++ trunk/nightly/conf/georgia-tech-cellbuzz-native.sendmail 2009-01-13 09:22:19 UTC (rev 8948)
@@ -1,13 +1,15 @@
#!/bin/sh
# use: georgia-tech-cellbuzz.sendmail subject file-to-mail [file-to-attach]
-# Don't forget to set the from and realname variables in ~/.muttrc !
+# Don't forget to set the variables 'from' and 'realname' in ~/.muttrc !
sender="bar...@gm..."
-recipients="val...@li... bar...@gm..."
+recipients="val...@li..."
#recipients="bar...@gm..."
if [ $# -ge 3 ]; then
- mutt -s "$1" -a "$3" ${recipients} < "$2"
+ gzip -9 <"$3" >"$3.gz"
+ mutt -s "$1" -a "$3.gz" ${recipients} < "$2"
+ rm -f "$3.gz"
else
mutt -s "$1" ${recipients} < "$2"
fi
|