Re: [Exim] Am i in over my head?

Top Pagina
Delete this message
Reply to this message
Auteur: Greg Ward
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] Am i in over my head?
On Thu, 21 Feb 2002, Jan Johansson wrote:
> We are using a case tracker (MantisBT) for our customers to log the
> usual foray of cases and comments. This is a PHP script which uses the
> local SMTP server to send notifications/updates/etc.
>
> Now we would like to be able to send copies of outgoing mail to various
> recipients depending on contents of the message body. for instance, the
> following pseudo code:


On 21 February 2002, Philip Hazel said:
> It's plausible, assuming that the relevant text is not too far into the
> body. You could apply suitable tests in a system filter. (In Exim 4 you
> could also do it in a router.) But why can't you get whatever is
> creating the messages to send them where you want them in the first
> place?


Or write a separate script to filter the messages, either before sending
them on to Exim or after Exim receives them. (This might be necessary
if you can't modify the case tracker.) Exim's filtering language is
really nice and a great tool for rejecting viruses or sorting list mail,
but it's not a panacea -- and it's certainly not a general-purpose
programming language. Python and Perl both have good libraries for
parsing and dealing with email.

        Greg
--
Greg Ward - software developer                gward@???
MEMS Exchange                            http://www.mems-exchange.org