Il 10/06/13 16:26, [email protected] ha scritto:
You may use something like this:
bcc_table:
address | enabled
<empty_string> | 1
[email protected] | 1
SELECT case when `enabled` then '[email protected]' else
'[email protected]' end FROM `bcc_table` where `address` in ('%s','')
order by `address` desc limit 1;
It's not perfect - just pointing into possible mysql solution whithout extra
lookup table.
You may also consider using WHERE clause with user_part= '%u' and domain='%d'.
Regards
V.Dimitrov
Hi, thanks for your reply.
I'll seriously consider your solution and post here the results.
Fabio