[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: "Ward, Martin" <Martin.Ward (at) colt.net>
- Date: Wed, 9 Jul 2008 13:46:47 +0100
- Thread-index: AcjhvMAHL1f79XtHQN+GjYamPMPFUwABH/iw
- Thread-topic: [hobbit] mailack question
If I understand Allan's original query he wants to set the ACK options
in the email body, not in the Subject line.
You could use a .forward to forward the email to a script that takes the
message body and puts it in the subject line, then throws it all into
the mailack program.
The only issue with this nice, simple way of doing it is that it will do
this for EVERY email sent to the hobbit user. If you can guarantee that
Hobbit will only ever get mail acks then I agree, your suggestion of
using a .forward will work fine. Procmail simply allows you to route
different emails in different directions, some the application x, other
to application y, everything else to the default in-box.
|\/|artin
--
-----Original Message-----
From: Phil Wild [mailto:philwild (at) gmail.com]
Sent: 09 July 2008 13:07
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] mailack question
You do not need to use procmail. I simply have a .forward
configured to pipe to mailack in the hobbit home directory
Cheers
Phil
2008/7/9 Ward, Martin <Martin.Ward (at) colt.net>:
Ah, it becomes clearer now!
With the suggestions from Phil Wild and Josh Luthman
(and reading the
man page for hobbit-mailack) it seems that you are
expected to use
procmail to use this program.
Phil, what you suggested seems to be just what
Hobbit-mailack does,
receives the email and runs a program against its data.
Instead of using the procmail(1m) recipe suggested in
the Hobbit-mailack
man page, you would need one like this:
====
DEFAULT=$HOME/Mailbox
LOGFILE=$HOME/procmail.log
:0
| $HOME/server/bin/hobbit/reformat_mailack
====
Your "reformat_mailack" script would need to rewrite the
body text into
the subject line, then simply echo the data to the
hobbit-mailack
command. Writing this linking script shouldn't be that
hard (perl would
be better than shell, but either could do it).
--
> -----Original Message-----
> From: Ward, Martin [mailto:Martin.Ward (at) colt.net]
> Sent: 09 July 2008 10:10
> To: hobbit (at) hswn.dk
> Subject: RE: [hobbit] mailack question
>
>
> 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
************************************************************************
*************
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
*************************************************************************************
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.