[Kolab-devel] Wallace problems
Thorsten Knöller
tk at ibk-soft.de
Tue Jan 29 20:24:05 CET 2013
Hi,
I had some problems with Wallace on my kolab 3 installation on Debian.
Mails from some providers have been swallowed by Wallace for example
steampowered.com and wunschliste.de were not working. I think the
problem is the encoding of the mails.
I did some changes in the wallace source and now everything seems to
work. These are the changes:
1. /usr/lib/python2.7/dist-packages/wallace/__init__.py
from: data = json.dumps(
{
'from': mailfrom,
'to': rcpttos,
'data': data
}
)
to: data = json.dumps(
{
'from': mailfrom,
'to': rcpttos,
'data': data
}, ensure_ascii=False
)
2. /usr/lib/python2.7/dist-packages/wallace/module_resources.py
from: _message = json.load(open(filepath, 'r'))
to: _message = json.load(open(filepath, 'r'), encoding='ISO-8859-1')
3. /usr/lib/python2.7/email/parser.py
from: from cStringIO import StringIO
to: from StringIO import StringIO
4. /usr/lib/python2.7/dist-packages/wallace/modules.py (3 times)
from: _message = json.load(open(filepath, 'r'))
to: _message = json.load(open(filepath, 'r'), encoding='ISO-8859-1')
5. /usr/lib/python2.7/dist-packages/wallace/modules.py
from: message = message_from_string("%s" %(str(_message['data'])))
to: message = message_from_string("%s" %(_message['data']))
6. /usr/lib/python2.7/email/message.py
from: from cStringIO import StringIO
to: from StringIO import StringIO
7. /usr/lib/python2.7/email/generator.py
from: from cStringIO import StringIO
to: from StringIO import StringIO
8: /usr/lib/python2.7/dist-packages/wallace/modules.py
from: message.as_string()
to: message.as_string().encode('ISO-8859-1')
Cheers,
Thorsten
More information about the devel
mailing list