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