[Kolab-devel] Wallace python problems

James Mills prologic at shortcircuit.net.au
Wed Aug 28 09:59:21 CEST 2013


I think I'm going to have to review the problem in more detail. I think my
patch is too simple.

I hope to have a proper solution soon.

cheers
James

Sent from my iPad

On 28/08/2013, at 17:50, "Tilman Krösche" <tilman.kroesche at namlit.com>
wrote:

 Thank you for your fast help. I applied the newest version of your patch
and the error didn't show up agian. But sadly i ran directly into the next
bug:

error: uncaptured python exception, closing channel <smtpd.SMTPChannel
connected 127.0.0.1:58281 at 0x19e8bd8> (<type
'exceptions.AttributeError'>:Message instance has no attribute
'set_content_maintype' [/usr/lib/python2.7/asyncore.py|read|83]
[/usr/lib/python2.7/asyncore.py|handle_read_event|449]
[/usr/lib/python2.7/asynchat.py|handle_read|158]
[/usr/lib/python2.7/smtpd.py|found_terminator|181]
[/usr/lib/python2.7/dist-packages/wallace/__init__.py|process_message|258])

I hope i applied your patch correctly, i only changed the following lines:

-        if not msg.get_charset():
-            msg.set_charset("UTF-8")
+        if msg.get_content_maintype() == "text" and not msg.get_charset():
+            msg.set_charset("utf-8")


My version is the most recent from debian wheezy development repo. Hope you
can help me again.

Greetings

Tilman Krösche

 Please see my revised patch on Issue 1627

Sent from my iPad

On 28/08/2013, at 6:56, "Tilman Krösche" <tilman.kroesche at namlit.com> wrote:

  I updated to the recent Version from the Kolab 3.0 development branch
pykolab 0.5.14-4.
Now wallace shows me the following error when i flush my postfix queue.
Any help appreciated.

*error: uncaptured python exception, closing channel <smtpd.SMTPChannel
connected 127.0.0.1:49664 at 0x2965bd8> (<type 'exceptions.TypeError'>:must
be string or buffer, not list [/usr/lib/python2.7/asyncore.py|read|83]
[/usr/lib/python2.7/asyncore.py|handle_read_event|449]
[/usr/lib/python2.7/asynchat.py|handle_read|158]
[/usr/lib/python2.7/smtpd.py|found_terminator|181]
[/usr/lib/python2.7/dist-packages/wallace/__init__.py|process_message|259]
[/usr/lib/python2 .7/email/message.py|set_charset|270]
[/usr/lib/python2.7/email/charset.py|body_encode|393]
[/usr/lib/python2.7/email/base64mime.py|encode|147])*

Greetings

Tilman Krösche

--
Tilman Krösche

namlit
Heideweg 11b
38120 Braunschweig

Tel.:    +49 (531) 225201-0
Mobil.:  +49 (171) 225201-2
Fax.:    +49 (531) 225201-9
E-Mail: tilman.kroesche at namlit.com
web:    http://www.namlit.com

  _______________________________________________
devel mailing list
devel at lists.kolab.org
https://lists.kolab.org/mailman/listinfo/devel



_______________________________________________
devel mailing listdevel at lists.kolab.orghttps://lists.kolab.org/mailman/listinfo/devel



-- 
Tilman Krösche

namlit
Heideweg 11b
38120 Braunschweig

Tel.:    +49 (531) 225201-0
Mobil.:  +49 (171) 225201-2
Fax.:    +49 (531) 225201-9
E-Mail: tilman.kroesche at namlit.com
web:    http://www.namlit.com

_______________________________________________
devel mailing list
devel at lists.kolab.org
https://lists.kolab.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20130828/b6f2153f/attachment.html>


More information about the devel mailing list