From: walter@svn.comics.unina.it
To: bismark-commits@lists.bufferbloat.net
Subject: [Bismark-commits] rev 353 - trunk/server/scripts
Date: Fri, 27 May 2011 12:17:36 +0200 [thread overview]
Message-ID: <E1QPu6q-0002pI-OW@svn.comics.unina.it> (raw)
Author: walter
Date: 2011-05-27 12:17:36 +0200 (Fri, 27 May 2011)
New Revision: 353
Modified:
trunk/server/scripts/bdm
Log:
aggregated notification fix
Modified: trunk/server/scripts/bdm
===================================================================
--- trunk/server/scripts/bdm 2011-05-27 06:05:25 UTC (rev 352)
+++ trunk/server/scripts/bdm 2011-05-27 10:17:36 UTC (rev 353)
@@ -343,12 +343,20 @@
# $2 = message
function sendmail ()
{
- [ ${2:0:1} == "@" ] && msg=$(cat ${2:1}) || msg=$2
+ # Expand @filename if present
+ if [ ${1:0:1} == "@" ]; then
+ msg=$(cat ${1:1})
+ id=$(basename $1)
+ else
+ msg=$2
+ id=$1
+ fi
+ # Send email to admins
/usr/sbin/sendmail -t <<-end
From: "Bismark Device Manager" <do-not-reply@gtnoise.net>
To: "Walter" <walter.dedonato@unina.it>, "Brian" <bpoole@cc.gatech.edu>, "Srikanth" <srikanth@gatech.edu>
- Subject: Bismark Notification System ($1)
+ Subject: Bismark Notification System ($id)
Date: $(date -R)
Content-type: text/plain
reply other threads:[~2011-05-27 11:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1QPu6q-0002pI-OW@svn.comics.unina.it \
--to=walter@svn.comics.unina.it \
--cc=bismark-commits@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox