Re: [exim] Per message routing

Pàgina inicial
Delete this message
Reply to this message
Autor: Mike Grice
Data:  
A: Kim Fredenberg
CC: exim-users
Assumpte: Re: [exim] Per message routing
On Fri, 2005-05-13 at 15:48 +0300, Kim Fredenberg wrote:
> Hello,
>
> I would like to archive certain messages arriving to my server. I have
> allready created a router and a transport that pipes the message into an
> PHP script which enters the email into a MySQL table. This is done based
> on sender of the address.
>
> Now since routers are per address specific I allways get N amount of
> rows inserted into the table where N is the amount of recipients in the
> e-mail. I used routing since I can perform MySQL queries on the sender
> of the mail.
>
> Maybe this question has been posted before but since I could find no
> real solution after googling and searching the archives I'll post it again:
>
> Is there any way of making per message routing or is it possible to
> perform MySQL queries in a system filter?


You could assign it an unique header further up (say in an ACL) and then
pass the header to your script, ignoring duplicate entries for this
unique value.

Mike

--
| Mike Grice                  Broadband Solutions for
| Systems Engineer                  Home & Business @
| PlusNet plc.                           www.plus.net

+ ----- PlusNet - The smarter way to broadband ------