Re: [Kolab-devel] Wallace python problems

James Mills <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <7351220675959711530__18473.6574105502$1377678378$gmane$org@unknownmsgid>
Ill take another stab at it tonight!

cheers
James

Sent from my iPad

On 28/08/2013, at 18:14, Enrico Tagliavini <[email protected]>
wrote:

Hi James,

please have a look at my patch [attached to bug 1627]
https://issues.kolab.org/attachment.cgi?id=349 . 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


On Wed, Aug 28, 2013 at 8:59 AM, James Mills
<[email protected]>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" <[email protected]>
> 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" <[email protected]>
> 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: [email protected]
> web:    http://www.namlit.com
>
>   _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel
>
>
>
> _______________________________________________
> devel mailing [email protected]://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: [email protected]
> web:    http://www.namlit.com
>
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel
>
>
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel
>

_______________________________________________
devel mailing list
[email protected]
https://lists.kolab.org/mailman/listinfo/devel

_______________________________________________
devel mailing list
[email protected]
https://lists.kolab.org/mailman/listinfo/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.