You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Forward to static aliases before wildcards, related to #38
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
dbpath = /data/freeposte.db
|
||||
query =
|
||||
SELECT destination
|
||||
FROM alias
|
||||
WHERE alias.email = '%s'
|
||||
AND alias.wildcard = 0
|
||||
UNION SELECT destination
|
||||
FROM alias
|
||||
WHERE '%s' LIKE alias.email
|
||||
AND alias.wildcard = 1
|
||||
LIMIT 1
|
||||
SELECT destination
|
||||
FROM alias
|
||||
WHERE
|
||||
(
|
||||
alias.wildcard = 0
|
||||
AND
|
||||
alias.email = '%s'
|
||||
) OR (
|
||||
alias.wildcard = 1
|
||||
AND
|
||||
'%s' LIKE alias.email
|
||||
)
|
||||
ORDER BY
|
||||
alias.wildcard ASC
|
||||
LIMIT 1
|
||||
|
Reference in New Issue
Block a user