mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -68,8 +68,8 @@ following line to your crontab::
|
||||
|
||||
0 * * * * <modoboa_site>/manage.py communicate_with_public_api
|
||||
|
||||
Please also note that public API now uses TLS so you must update
|
||||
your configuration as follows::
|
||||
Please also note that public API now uses TLS so you must update your
|
||||
configuration as follows::
|
||||
|
||||
MODOBOA_API_URL = 'https://api.modoboa.org/1/'
|
||||
|
||||
|
||||
@@ -52,17 +52,20 @@ class AliasesMap(object):
|
||||
mysql = (
|
||||
"SELECT alr.address FROM modoboa_admin_aliasrecipient AS alr "
|
||||
"INNER JOIN admin_alias AS al ON alr.alias_id=al.id "
|
||||
"WHERE al.enabled=1 AND al.address='%s' AND al.expire_at>now()"
|
||||
"WHERE al.enabled=1 AND al.address='%s' AND "
|
||||
"(al.expire_at IS NULL OR al.expire_at>now())"
|
||||
)
|
||||
postgres = (
|
||||
"SELECT alr.address FROM modoboa_admin_aliasrecipient AS alr "
|
||||
"INNER JOIN admin_alias AS al ON alr.alias_id=al.id "
|
||||
"WHERE al.enabled AND al.address='%s' AND al.expire_at>now()"
|
||||
"WHERE al.enabled AND al.address='%s' AND "
|
||||
"(al.expire_at IS NULL OR al.expire_at>now())"
|
||||
)
|
||||
sqlite = (
|
||||
"SELECT alr.address FROM modoboa_admin_aliasrecipient AS alr "
|
||||
"INNER JOIN admin_alias AS al ON alr.alias_id=al.id "
|
||||
"WHERE al.enabled=1 AND al.address='%s' AND al.expire_at>now()"
|
||||
"WHERE al.enabled=1 AND al.address='%s' AND "
|
||||
"(al.expire_at IS NULL OR al.expire_at>now())"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user