mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
15 lines
380 B
Bash
Executable File
15 lines
380 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# usage: $0 subject file-to-mail [file-to-attach]
|
|
# Don't forget to set the variables 'from' and 'realname' in ~/.muttrc !!
|
|
|
|
recipients="scst-devel@lists.sourceforge.net"
|
|
#recipients="bart.vanassche@gmail.com,bart"
|
|
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
|