Il giorno ven, 26/03/2010 alle 09.57 +1100, Ted Cooper ha scritto: > Unless your MySQL works differently to mine, that regex will never
> match. MySQL doesn't need the // on the start and end. Always get your
> SQL working before trying to get it to work inside Exim.
I know.
It was just a proof of concept, non a real working example.
> There doesn't seem to be a point to returning the regular expression
> used so I changed that to a 1 so the line equals true. And now turn it
> into a condition ..
Ok.
> condition = ${lookup mysql{SELECT 1 FROM table WHERE header = 'From' \
> AND ${quote_mysql:$h_from:} REGEXP string}
>
> Theoretically anyway .. not tested, your mileage may vary, things may
> look larger in this mirror than they actually are