[Kolab-devel] Wallace python problems
Milosz Galazka
milosz at sleeplessbeastie.eu
Wed Aug 28 21:23:34 CEST 2013
W dniu 28/08/2013 10:14, Enrico Tagliavini napisał(a):
> Hi James,
> please have a look at my patch [attached to bug 1627]
> https://issues.kolab.org/attachment.cgi?id=349 [5] . Note: this needs
> to be rebased to the current version of pykolab. It might not be the
> most elegant solution but it worked for me. You might have a better
> idea then me looking at it.
> Thank you.
> Enrico
>
Hello,
I am using this path too (slightly modified).
I have described my experience at
http://blog.sleeplessbeastie.eu/2013/05/29/kolab-and-national-characters-in-the-mail-subject/
and
http://blog.sleeplessbeastie.eu/2013/07/04/debian-how-to-hold-package/
Thanks,
Milosz
> On Wed, Aug 28, 2013 at 8:59 AM, James Mills
> <prologic at shortcircuit.net.au> wrote:
>
>> 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 [4] 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 [2] 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 [1]
>>>>
>>>>> _______________________________________________
>>>>> devel mailing list
>>>>> devel at lists.kolab.org
>>>>> https://lists.kolab.org/mailman/listinfo/devel [3]
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel at lists.kolab.org
>>>> https://lists.kolab.org/mailman/listinfo/devel [3]
>>> --
>>> 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 [1]
>>
>>> _______________________________________________
>>> devel mailing list
>>> devel at lists.kolab.org
>>> https://lists.kolab.org/mailman/listinfo/devel [3]
>> _______________________________________________
>> devel mailing list
>> devel at lists.kolab.org
>> https://lists.kolab.org/mailman/listinfo/devel [3]
>
>
> Links:
> ------
> [1] http://www.namlit.com
> [2] http://127.0.0.1:49664
> [3] https://lists.kolab.org/mailman/listinfo/devel
> [4] http://127.0.0.1:58281
> [5] https://issues.kolab.org/attachment.cgi?id=349
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel
More information about the devel
mailing list