<div dir="ltr"><div><div><div>Hi James,<br><br></div>please have a look at my patch [attached to bug 1627] <a href="https://issues.kolab.org/attachment.cgi?id=349">https://issues.kolab.org/attachment.cgi?id=349</a> . 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.<br>
<br></div>Thank you.<br></div>Enrico<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 28, 2013 at 8:59 AM, James Mills <span dir="ltr"><<a href="mailto:prologic@shortcircuit.net.au" target="_blank">prologic@shortcircuit.net.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I think I'm going to have to review the problem in more detail. I think my patch is too simple.</div>
<div><br>
</div><div>I hope to have a proper solution soon.</div><div><br></div><div>cheers</div><div>James<br><br>Sent from my iPad</div><div class="im"><div><br>On 28/08/2013, at 17:50, "Tilman Krösche" <<a href="mailto:tilman.kroesche@namlit.com" target="_blank">tilman.kroesche@namlit.com</a>> wrote:<br>
<br></div></div><blockquote type="cite"><div><div class="im">
<div>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:<br>
<br>
error: uncaptured python exception, closing channel
<smtpd.SMTPChannel connected <a href="http://127.0.0.1:58281" target="_blank">127.0.0.1:58281</a> 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])<br>
<br>
I hope i applied your patch correctly, i only changed the
following lines:<br>
<pre>- 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")</pre>
<br>
My version is the most recent from debian wheezy development repo.
Hope you can help me again.<br>
<br>
Greetings<br>
<br>
Tilman Krösche<br>
</div>
</div><blockquote type="cite">
<div>Please see my revised patch on Issue 1627<br>
<br>
Sent from my iPad</div><div><div class="h5">
<div><br>
On 28/08/2013, at 6:56, "Tilman Krösche" <<a href="mailto:tilman.kroesche@namlit.com" target="_blank">tilman.kroesche@namlit.com</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
I updated to the recent Version from the Kolab 3.0 development
branch pykolab 0.5.14-4. <br>
Now wallace shows me the following error when i flush my
postfix queue. <br>
Any help appreciated.<br>
<br>
<i>error: uncaptured python exception, closing channel
<smtpd.SMTPChannel connected <a href="http://127.0.0.1:49664" target="_blank">127.0.0.1:49664</a> 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])</i><br>
<br>
Greetings<br>
<br>
Tilman Krösche<br>
<br>
<pre cols="72">--
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: <a href="mailto:tilman.kroesche@namlit.com" target="_blank">tilman.kroesche@namlit.com</a>
web: <a href="http://www.namlit.com" target="_blank">http://www.namlit.com</a> </pre>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>devel mailing list</span><br>
<span><a href="mailto:devel@lists.kolab.org" target="_blank">devel@lists.kolab.org</a></span><br>
<span><a href="https://lists.kolab.org/mailman/listinfo/devel" target="_blank">https://lists.kolab.org/mailman/listinfo/devel</a></span></div>
</blockquote>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
devel mailing list
<a href="mailto:devel@lists.kolab.org" target="_blank">devel@lists.kolab.org</a>
<a href="https://lists.kolab.org/mailman/listinfo/devel" target="_blank">https://lists.kolab.org/mailman/listinfo/devel</a></pre>
</div></div></blockquote><div><div class="h5">
<br>
<br>
<pre cols="72">--
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: <a href="mailto:tilman.kroesche@namlit.com" target="_blank">tilman.kroesche@namlit.com</a>
web: <a href="http://www.namlit.com" target="_blank">http://www.namlit.com</a> </pre>
</div></div></div></blockquote><div><div class="h5"><blockquote type="cite"><div><span>_______________________________________________</span><br><span>devel mailing list</span><br><span><a href="mailto:devel@lists.kolab.org" target="_blank">devel@lists.kolab.org</a></span><br>
<span><a href="https://lists.kolab.org/mailman/listinfo/devel" target="_blank">https://lists.kolab.org/mailman/listinfo/devel</a></span></div></blockquote></div></div></div>
<br>_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@lists.kolab.org">devel@lists.kolab.org</a><br>
<a href="https://lists.kolab.org/mailman/listinfo/devel" target="_blank">https://lists.kolab.org/mailman/listinfo/devel</a><br></blockquote></div><br></div>