pinp post-receive-xmpp to only use one sendxmpp invocation
This commit is contained in:
parent
bd45209392
commit
8a1cbafd4a
|
@ -51,6 +51,8 @@
|
|||
# give information for debugging.
|
||||
#
|
||||
|
||||
export HOME=/var/git
|
||||
|
||||
# ---------------------------- Functions
|
||||
|
||||
#
|
||||
|
@ -611,11 +613,7 @@ send_mail()
|
|||
# Strange, sendxmpp wants latin1:
|
||||
msg=$(echo "$1"|iconv -f utf8 -t latin1)
|
||||
subject=$(echo "$msg"|head -n 1)
|
||||
for jid in $recipients
|
||||
do
|
||||
echo -n "$msg" | sendxmpp $jid -s "$subject"
|
||||
echo "Notification sent to $jid"
|
||||
done
|
||||
echo -n "$msg" | sendxmpp -s "$subject" $recipients
|
||||
}
|
||||
|
||||
# ---------------------------- main()
|
||||
|
|
Loading…
Reference in New Issue