[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] mailack question
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] mailack question
- From: "Phil Wild" <philwild (at) gmail.com>
- Date: Wed, 9 Jul 2008 17:22:39 +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:in-reply-to:mime-version:content-type:references; bh=R3KAxBLSkDlzdfvsNMU7fLdiM1BPgAFPv9zQMY1c4wQ=; b=Qkez4VJaoIiEqDo6gQFM/zbm7987TVD/HXz6EmWqNMEl7fowUnx4GSP50nDtN9J+Pn ZwsWHAsy0Pp/b8FZp32DPGiulzLGnn4Iw6EKgGENCRj+IgdEv44CCjhaq1b+4nSYREik nY2LJEZHWIg8L5vSv2Gq/BrtX6nttKefAckPE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=U4Wwu+cNk0a3IWLEI1b5YBIATLr85VLdoAr1uMzqgFFzfYu+Y9oxwKyXrTIV+Gxbp5 QfP2X0oromj7fOgwOjFwDmmWB0AfRtXaruuOeVDQWrHp+wGXfjLBE4QbPmjBdkuLX+Z5 dTJyXorLPIk2o7EpV+QDcB3dPDrKp+sjtmMA4=
- References: <1F7B01020EC4D04DA17703634B9E888E0561A011 (at) ULPGCTMVMAI003.EU.COLT>
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
Then you could write your own little wrapper to extract what you want from
the sms stream and pump it into hobbit.
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.
Thoughts???
Phil
2008/7/9 Ward, Martin <Martin.Ward (at) colt.net>:
> I can offer a suggestion but this is only an idea I have just had, it's
> not been tried, tested or anything. Also bear in mind that I had no idea
> that you could acknowledge an alert via email... This suggestion might
> bugger that up in some unforeseen manner.
>
> Could you install something like procmail? I see it working like this:
> 1. An email gets sent to you.
> 2. You reply to it with the acknowledgement in the text body as you have
> stated.
> 3. This reply gets picked up by procmail before it reaches Hobbit (maybe
> change the Reply-To in the original email to route it to a different
> address).
> 4. Procmail decides that it should process this email (there are various
> tests that can be performed) and calls a script, passing the body of the
> email (and the subject?) to it.
> 5. The script munges the email so that the Subject line is made from the
> text in the body of the email.
> 6. Script forwards to email on to its original destination.
>
> I can immediately see flaws in this. You're replying on another piece of
> s/w. You've got to make sure that the matching format works. If you want
> to use the say return address then you need to ensure that email flows
> from procmail to the Hobbit receiver. I'm sure there are others.
>
> Still, it's one solution.
>
> |\/|artin
> --
>
>
>
> > -----Original Message-----
> > From: Allan Spencer [mailto:allan (at) zandahar.net]
> > Sent: 09 July 2008 02:02
> > To: hobbit (at) hswn.dk
> > Subject: Re: [hobbit] mailack question
> >
> >
> > Just thought I'd check back on this and surprised nobody had any
> > thoughts on it but also notice Henrik hasn't been around either.
> >
> > Still have had no luck with this although I have not been
> > able to spend
> > much time on it.
> >
> > Still have the same problem of not being able to ack an alert via the
> > email body instead of the subject.
> >
> > Cheers
> > Allan
> >
> > Allan Spencer wrote:
> > > HI all
> > >
> > > A LONG time ago I asked about ack'ing an alert via email (or via
> > > sms-to-email) and to be able to do so without a subject. A
> > patch was
> > > written at the time and it was included into the main codebase but
> > > unfortunately I did not get a chance to imeplement what I wanted to
> > > and never ended up testing it. Thats has just changed
> > recently and now
> > > I am having issues acking an alert via text in the body.
> > >
> > > If i reply to an email and maintain the subject it works fine, if I
> > > try cut the subject and paste it as the body nothing
> > happens. I havent
> > > gone as far as testing it via the sms-to-email app yet as I
> > cant get
> > > it working from a normal email.
> > >
> > > I still have one other potential problem of me converting the [] in
> > > the alerts to () but thats more outbound sms and I can deal with it
> > > coming back inwards.
> > >
> > > Any suggestions appreciated
> > >
> > > Allan
> > >
> > > To unsubscribe from the hobbit list, send an e-mail to
> > > hobbit-unsubscribe (at) hswn.dk
> > >
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe (at) hswn.dk
> >
> >
> >
>
>
>
> *************************************************************************************
> 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.
>
> 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
> security (at) colt.net and delete the message and any attachments without
> retaining any copies.
>
> Internet communications are not secure and COLT does not accept
> responsibility for this message, its contents nor responsibility for any
> viruses.
>
> 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.
>
> Please note that incoming emails will be automatically scanned to eliminate
> potential viruses and unsolicited promotional emails. For more information
> refer to www.colt.net or contact us on +44(0)20 7390 3900.
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Tel: 0400 466 952
Fax: 0433 123 226
email: philwild AT gmail.com