Re: Wallace problems

"Jeroen van Meeuwen (Kolab Systems)" <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <800986a60c0cb4f1129d4a2b90c94376__49934.8974823535$1360168229$gmane$org@kolabsys.com>
On 2013-01-29 19:24, Thorsten Knöller wrote:
> 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.

Hi Thorsten,

appreciate your work, I've heard of others running in to the same or 
similar issues before, but I haven't had the time to sink my teeth in to 
it.

I have a couple of recommendations and concerns given the code snippets 
you have listed:

> 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')
> 
> 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')
> 

I reckon that reading in files as ISO-8859-1 is going to include only 
latin-1 characters, is that correct?

For any sort of fix, I would target to include, for example, Cyrillic 
support, as well as any other character set that has not yet popped up 
on my radar so far.

> 3. /usr/lib/python2.7/email/parser.py
> from: from cStringIO import StringIO
> to: from StringIO import StringIO
> 
> 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
> 

I hope you understand I cannot patch the base python email module in 
this way.

Kind regards,

Jeroen van Meeuwen

-- 
Systems Architect, Kolab Systems AG

e: vanmeeuwen at kolabsys.com
m: +44 74 2516 3817
w: http://www.kolabsys.com

pgp: 9342 BF08

_______________________________________________
Kolab-devel mailing list
[email protected]
https://www.intevation.de/mailman/listinfo/kolab-devel
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.