[Dovecot] Fix Dovecot quarantine notification script

master
andryyy 2019-10-19 22:58:11 +02:00
parent a95a3f6145
commit d35e3c1eff
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ for record in records:
print('Could not determine last notification for %s, assuming never' % (record['rcpt']))
last_notification = 0
attrs_json = query_mysql('SELECT attributes FROM mailbox WHERE username = "%s"' % (record['rcpt']))
attrs = json.loads(str(attrs_json[0]['attributes'].decode('utf-8')))
attrs = json.loads(str(attrs_json[0]['attributes']))
if attrs['quarantine_notification'] not in ('hourly', 'daily', 'weekly', 'never'):
print('Abnormal quarantine_notification value')
continue

View File

@ -173,7 +173,7 @@ services:
- sogo
dovecot-mailcow:
image: mailcow/dovecot:1.91
image: mailcow/dovecot:1.92
build: ./data/Dockerfiles/dovecot
dns:
- ${IPV4_NETWORK:-172.22.1}.254