浏览代码

[Dovecot] Fix Dovecot quarantine notification script

andryyy 5 年之前
父节点
当前提交
d35e3c1eff
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      data/Dockerfiles/dovecot/quarantine_notify.py
  2. 1 1
      docker-compose.yml

+ 1 - 1
data/Dockerfiles/dovecot/quarantine_notify.py

@@ -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

+ 1 - 1
docker-compose.yml

@@ -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