Autor: Jakub Čermák Data: Dla: exim-users Temat: [exim] Router condition
Hello *,
I’ve this condition in my router:
condition = ${lookup mysql {SELECT home FROM passwd WHERE email='${local_part}@${domain}'}}
But I want to have a special router ho handle spam messages, therefore I’d like to add another condition to the previous one, something like "if ($h_X-Spam-Flag == „YES) AND (the condition above)"
I tried
${if and { {eqi {$h_X-Spam-Flag} {YES}} ${lookup mysql {SELECT home FROM passwd WHERE email='${local_part}@${domain}'}} } }
but it says the syntax is wrong. So can you please give me advice, how can I make a condition to filter spam messages for "mysql users" ?