[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
type of message
- To: hobbit (at) hswn.dk
- Subject: type of message
- From: "Phil Wild" <philwild (at) gmail.com>
- Date: Tue, 22 Apr 2008 01:16:49 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=6ULE6wZSCF4v6SDBU4sJKr9AIwWf6DaTEcm6PRd7HCg=; b=fbyHvdwH9UTywxN9HtgRNZSmIjp+wfqka0jy13l6fDUonXniOtbcc+gCa8PdyA4nMa0zVWxyvbpHx1KPclB+sQwqLAtUnfXZcC65a+/pLUhgtwshPj37zABlAZo4S2rXCvxOmiYFQID2ehX/7cs9G2pgkL39ZZtqc6BgB7Dv4/0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=gb96WlUIZfR/j32fIU6GSToN2+/pnXbxLh35lxdxG44BFMfvUF2BDigdqwvLxIkonFt1jV6OFk6ZZ54lZPTLSBTlMG1Pzq5FBSlAd2KFNsGjPWHKAdRRGjMMela1S+4nYNST66/K1Qr3SPSpdfCj3gKPylATxv1uGH4CtJNN+bU=
Hi hobbit lovers,
I have a requirement to include some decision making into the hobbit-alerts
configuration file.
For a particular group, I need to make a decision on if an email should be
sent or an sms should sent based on the result of running an external script
(e.g. connect to the corporate telephone list and check if a mobile phone
number is listed against a user with a certain email address. If I get back
a phone number, then I want to send an sms, otherwise, just send an email).
Now my question is this... When hobbit executes the script after detecting
an event, it can not determine if it will be sending an email or an sms
until AFTER the SCRIPT has commenced execution. Currently, I have
FORMAT=TEXT in the configuration which will give me the full message content
in the environment variable BBALPHAMSG. If I determine I can send an SMS, I
would prefer the short message type.
Does anyone know of a way to do this?
My guess is that I will need to write my own TEXT2SMS conversion script that
will give me a short message as close to the message format that hobbit
creates for sms's, or, hack the source to create a second ENV variable
BBSMSALPHAMSG containing the short message format so I have access to both
of them?
Any thoughts?
Cheers
Phil
--
Tel: 0400 466 952
Fax: 0433 123 226
email: philwild AT gmail.com