1

Topic: notify_quarantined_recipients.py AttributeError

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.8
- Linux/BSD distribution name and version:  Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

It's seems since the update to 0.9.8 the script notify_quarantined_recipients.py generate and error when running. Any idea how to fix it ? Was working fine in 0.9.7

Traceback (most recent call last):
 File "/opt/www/iredadmin/tools/notify_quarantined_recipients.py", line 310, in <module>
   info += '\t' + '<td class="td_subject">' + cgi_escape(rcd.subject) + '</td>' + '\n'
 File "/usr/lib/python2.7/cgi.py", line 1043, in escape
   s = s.replace("&", "&amp;") # Must be done first!
AttributeError: 'buffer' object has no attribute 'replace'

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: notify_quarantined_recipients.py AttributeError

Seems the subject is null or something wrong, is it possible to have direct ssh access for debugging?

3

Re: notify_quarantined_recipients.py AttributeError

ZhangHuangbin wrote:

Seems the subject is null or something wrong, is it possible to have direct ssh access for debugging?


Sure I will send you an email regarding the information for connection.

4

Re: notify_quarantined_recipients.py AttributeError

Zhang was able to fix the issue which was related to an error in the script.