Topic: settings.py with utf-8-strings
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: debian v7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- 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.
====
during testing the notification script "notify_quarantined_recipients.py"
we successfully killed the whole thing by adding into the iredadmin-pro-settings a string with an extended-character like this:
NOTIFICATION_QUARANTINE_MAIL_SUBJECT = '[Hinweis] Es sind %(total)d emails in Quarantäne'
fails with:
Traceback (most recent call last):
File "notify_quarantined_recipients.py", line 99, in <module>
import settings
File "/usr/share/apache2/iRedAdmin-Pro-SQL-2.7.0/tools/../settings.py", line 144
SyntaxError: Non-ASCII character '\xc3' in file /usr/share/apache2/iRedAdmin-Pro-SQL-2.7.0/tools/../settings.py on line 144, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
please let me know where I could best declare encoding.
thx
hk
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.