[Entity] Permit mail_domain as a semicolum separated list of domains
Updated getEntityIDByDomain function to be abale to retrive the first Entity wich includes "domain" in mail_domain attribute as a semicolum separated list of domains.
If multiple Entities found, return the first one of SQL query. Could eventually be modified to return -1 if needed to be more strict about domain unicity.
I think this update can address many use cases, because this was ofen requested on forums, but I don't know if this function behavior modification implies other functionnality than MailCollector Rules.
Hope this can help :)
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | yes |
Hi,
Any news about this PR ?
The only potential problem I see is about 'mail_domain' type which is VARCHAR(255) type in the entites table, and may be should be switched to LONGTEXT() type to handle much more domains than 2 or 3 depending on the length of domain name.
no feedback from a while, closing.