Il 10/06/13 16:26, v.dimit...@synergetic.ag ha scritto:
You may use something like this:
bcc_table:
address | enabled
<empty_string> | 1
spec...@example.com | 1
SELECT case when `enabled` then 'other_...@example.com' else
'default_...@example.com' 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