Topic: Sieve bugs in iRedAdmin-Mysql-Pro-1.5.1
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: centos 6.3
- Related log if you're reporting an issue:
====
我今天又测试了一下sieve功能,
数据库里面,有四个字段enablemanagesieve,enablemanagesievesecured,enablesieve,enablesievesecured,
在iredadmin后台的“用户属性-高级设置”里,只要点保存更改,数据库里的enablesieve,enablesievesecured都会变成0,
即使勾上“自定义邮件过滤规则+自定义邮件过滤规则(使用TLS/SSL加密传输)”,只要保存设置,后面两个字段都会变成0,而enablemanagesieve,enablemanagesievesecured两个字段则分别能保存设置。
看到libs/mysql/user.py里有如下代码:
if 'enablemanagesieve' in self.enabledService:
self.enabledService += ['enablesieve']
else:
self.disabledService += ['enablesieve']
if 'enablemanagesievesecured' in self.enabledService:
self.enabledService += ['enablesievesecured']
else:
self.disabledService += ['enablesievesecured']
我看到这段代码,原则上是勾选了enablemanagesieve,那么enablesieve也会生效,
同样勾选了enablemanagesievesecured',enablesievesecured亦会生效,
但不知道为什么,只要保存,后面两个字段都为0了。
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.