Re: [Exim] Reducing mysql load

Góra strony
Delete this message
Reply to this message
Autor: David Leggett
Data:  
Dla: exim-users
Temat: Re: [Exim] Reducing mysql load
On Thursday 30 October 2003 14:00, Philip Hazel wrote:
> On Thu, 30 Oct 2003, David Leggett wrote:
> > The string is expanded just before the router is run, that is, after all
> > the pre~con~dition tests have succeeded.
> > <!-- End documentation quote -->
> >
> > Since it is expanded after the preconditions (local_parts, domains,
> > condition) then surely if the router is skipped because of a condition
> > failiure it is not set so i cant use this in the other routers.
>
> Yes, but if you have the *same* conditions on the other routers (which I
> thought you did) then the fact it is unset (i.e. empty) means you can
> skip them. In other words:
>
> $address_data is intially empty (the default value).
>
> . First router tests preconditions, skipped if they fail. Otherwise
> address_data = any old string
> gets obeyed.
>
> . Second router uses
> condition = ${if eq{$address_data}{}{no}{yes}}
>
> Or have I missed something?


My routers have the same local parts/domains but different conditions. Sorry
that didnt state this before.


- --
David Leggett
david@???
http://www.asguard.org.uk
http://www.site-control.org
Get my public GPG key from http://www.asguard.org.uk/~david/david.asc
Fingerprint: 432E 4EAD E1E5 26BB 29EB 47FA CBDE AB17 0D23 C76B