Store the full address as a computed field

This commit is contained in:
Pierre Jaury
2016-04-20 21:14:04 +02:00
parent f2a6fe89db
commit 18af763293
5 changed files with 32 additions and 24 deletions

View File

@@ -5,12 +5,10 @@ connect = /data/freeposte.db
password_query = \
SELECT password \
FROM user \
WHERE user.domain_name = '%d' \
AND user.localpart = '%n'
WHERE user.address = '%u'
# Mostly get the user quota
user_query = \
SELECT '*:bytes=' || user.quota_bytes AS quota_rule \
FROM user \
WHERE user.domain_name = '%d' \
AND user.localpart = '%n'
WHERE user.address = '%u'