chiark
/
gitweb
/
~ianmdlvl
/
post-pizza-notify.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swap argument order, support spaces in email address list
[post-pizza-notify.git]
/
via-email
diff --git
a/via-email
b/via-email
index 2f1bd46971ca7829a302307e720b51c8b2e32630..34b1d7fb42282549692e6c3a3cb8648e20759c6d 100755
(executable)
--- a/
via-email
+++ b/
via-email
@@
-1,10
+1,11
@@
-#!/bin/sh
-rcpt="$1"
-msg="$2"
+#!/bin/
ba
sh
+msg="$1"; shift
+rcpts="$*";
ssh -vt ijackson@tunnel.chiark.greenend.org.uk \
/usr/lib/sendmail -oem -odb -oi -t <<END
ssh -vt ijackson@tunnel.chiark.greenend.org.uk \
/usr/lib/sendmail -oem -odb -oi -t <<END
-To: $
rcpt
+To: $
{rcpts// /, }
Subject: $msg
Subject: $msg
+User-Agent: post-pizza notification robot
$msg
$msg