On Thu, Aug 19, 2010 at 10:06 AM, Jonas Forsberg <exim4@???> wrote:
>
>
> Hello.
> I am fairly new to exim4, so please be patient with me.
>
> I'm
> trying to get a condition for a router to work as I expect, but I
> clearly have issues understanding the syntax.
>
> The condition consists of
> two parts:
>
> 1st a check in the Subject field after a string, that I have
> got to work.
>
> condition = ${lookup mysql{
> SELECT email FROM users
>
> WHERE email='${quote_mysql:$local_part}@${quote_mysql:$domain}'}
>
> {true}{false}}
>
> 2nd a check in a MySQL table, which I have been
> working.
>
> condition = ${if match
> {$h_subject:}{N^KalleKalas$N}{yes}{no}}
>
> but to combine those two into a
> "and rule" makes my head spin. What ever I do exim4 logs that it can not
> expand the condition.
>
> I hope that some kind soul can point me in the right direction so that I
> get this router to deliver it to a pipe transport
>
>
# Expansion and multiple strings..
${if and {
{cond1}
{cond1}
{cond3}
...
}
{truestring}{falsestring}}
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
-- Lucky Dube