<div>I was thinking of looking through the mail-ack c code tonight. I am not a C programmer at all, but it may be not all that hard to convert mail-ack to just commandline-ack</div>
<div> </div>
<div>Then you could write your own little wrapper to extract what you want from the sms stream and pump it into hobbit.</div>
<div> </div>
<div>I just spent an hour trying to fudge the cgi script bb-ack.sh to do the above but could not get it to work properly - not a very nice soln though as stdout from bb-ack is a heap of html as opposed to a nice clean exit status etc.</div>

<div> </div>
<div>Thoughts???</div>
<div> </div>
<div>Phil<br><br></div>
<div class="gmail_quote">2008/7/9 Ward, Martin <<a href="mailto:Martin.Ward@colt.net">Martin.Ward@colt.net</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I can offer a suggestion but this is only an idea I have just had, it's<br>not been tried, tested or anything. Also bear in mind that I had no idea<br>
that you could acknowledge an alert via email... This suggestion might<br>bugger that up in some unforeseen manner.<br><br>Could you install something like procmail? I see it working like this:<br>1. An email gets sent to you.<br>
2. You reply to it with the acknowledgement in the text body as you have<br>stated.<br>3. This reply gets picked up by procmail before it reaches Hobbit (maybe<br>change the Reply-To in the original email to route it to a different<br>
address).<br>4. Procmail decides that it should process this email (there are various<br>tests that can be performed) and calls a script, passing the body of the<br>email (and the subject?) to it.<br>5. The script munges the email so that the Subject line is made from the<br>
text in the body of the email.<br>6. Script forwards to email on to its original destination.<br><br>I can immediately see flaws in this. You're replying on another piece of<br>s/w. You've got to make sure that the matching format works. If you want<br>
to use the say return address then you need to ensure that email flows<br>from procmail to the Hobbit receiver. I'm sure there are others.<br><br>Still, it's one solution.<br><br>|\/|artin<br>--<br>
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>> -----Original Message-----<br>> From: Allan Spencer [mailto:<a href="mailto:allan@zandahar.net">allan@zandahar.net</a>]<br>> Sent: 09 July 2008 02:02<br>> To: <a href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a><br>
> Subject: Re: [hobbit] mailack question<br>><br>><br>> Just thought I'd check back on this and surprised nobody had any<br>> thoughts on it but also notice Henrik hasn't been around either.<br>><br>
> Still have had no luck with this although I have not been<br>> able to spend<br>> much time on it.<br>><br>> Still have the same problem of not being able to ack an alert via the<br>> email body instead of the subject.<br>
><br>> Cheers<br>> Allan<br>><br>> Allan Spencer wrote:<br>> > HI all<br>> ><br>> > A LONG time ago I asked about ack'ing an alert via email (or via<br>> > sms-to-email) and to be able to do so without a subject. A<br>
> patch was<br>> > written at the time and it was included into the main codebase but<br>> > unfortunately I did not get a chance to imeplement what I wanted to<br>> > and never ended up testing it. Thats has just changed<br>
> recently and now<br>> > I am having issues acking an alert via text in the body.<br>> ><br>> > If i reply to an email and maintain the subject it works fine, if I<br>> > try cut the subject and paste it as the body nothing<br>
> happens. I havent<br>> > gone as far as testing it via the sms-to-email app yet as I<br>> cant get<br>> > it working from a normal email.<br>> ><br>> > I still have one other potential problem of me converting the [] in<br>
> > the alerts to () but thats more outbound sms and I can deal with it<br>> > coming back inwards.<br>> ><br>> > Any suggestions appreciated<br>> ><br>> > Allan<br>> ><br>> > To unsubscribe from the hobbit list, send an e-mail to<br>
> > <a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>> ><br>><br>> To unsubscribe from the hobbit list, send an e-mail to<br>> <a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
><br>><br>><br><br><br></div></div>*************************************************************************************<br>The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.<br>
<br>The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing <a href="mailto:security@colt.net">security@colt.net</a> and delete the message and any attachments without retaining any copies.<br>
<br>Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.<br><br>No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.<br>
<br>Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to <a href="http://www.colt.net/" target="_blank">www.colt.net</a> or contact us on +44(0)20 7390 3900.<br>

<div>
<div></div>
<div class="Wj3C7c"><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></div></div></blockquote></div><br><br clear="all">
<br>-- <br>Tel: 0400 466 952<br>Fax: 0433 123 226<br>email: philwild AT <a href="http://gmail.com">gmail.com</a>