Wallace problems

Thorsten Knöller <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <510821D5.7090900__14823.4673346908$1359487997$gmane$org@ibk-soft.de>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.