Thanks, the patch solved my problem...<br><br><br><div><span class="gmail_quote">On 9/6/06, <b class="gmail_sendername">Thomas Waldmann</b> <<a href="mailto:tw-public@gmx.de">tw-public@gmx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> After upgrade to MoinMoin 1.5.4 I don't receive notification mails in<br>> correct readable format...<br>> How should I know that MoinMoin sends mails with UTF-8 encoding ? I don't<br>> have any problem with English texts, my problem is with Persian texts...
<br>> I think MoinMoin 1.5.4 doesn't send emails in UTF-8 format... I didn't<br>> have<br>> this problem with MoinMoin 1.5.3<br>This is not a moin bug, but different behaviour of different python<br>versions, see there:
<br><br><a href="http://moinmoin.wikiwikiweb.de/MoinMoinBugs/UnicodeMailNotificationEncodingBroken">http://moinmoin.wikiwikiweb.de/MoinMoinBugs/UnicodeMailNotificationEncodingBroken</a><br><br><a href="http://moinmoin.wikiwikiweb.de/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded">
http://moinmoin.wikiwikiweb.de/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded</a><br><br>This patch should workaround it for all python versions:<br><br>--- a/MoinMoin/util/mail.py     Thu Jul 20 17:38:59 2006 +0200<br>
+++ b/MoinMoin/util/mail.py     Thu Jul 20 18:01:31 2006 +0200<br>@@ -74,8 +74,14 @@ def sendmail(request, to, subject, text,<br>     charset = Charset(config.charset)<br>     charset.header_encoding = QP<br>     charset.body_encoding
 = QP<br>-    msg.set_charset(charset)<br>-    msg.set_payload(charset.body_encode(text))<br>+    msg.set_charset(charset)<br>+<br>+    # work around a bug in python 2.4.3 and above:<br>+    msg.set_payload('=')<br>+    if 
msg.as_string().endswith('='):<br>+        text = charset.body_encode(text)<br>+<br>+    msg.set_payload(text)<br><br>     # Create message headers<br>     # Don't expose emails addreses of the other subscribers, instead we
<br><br>It will be included in 1.5.5 release soon.<br><br><br><br><br>-------------------------------------------------------------------------<br>Using Tomcat but need to do more? Need to support web services, security?<br>
Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>_______________________________________________<br>Moin-user mailing list<br><a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/moin-user">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br></blockquote></div><br><br clear="all"><br>-- <br>********************************************************
<br>Yours Sincerely, Mehdi Hassanpour<br>----------------------------------------------------------------------<br>/* Of one Essence is the human race,<br>Thusly has Creation put the Base;<br>One Limb impacted is sufficient,
<br>For all Others to feel the Mace.<br>                           ~Saadi (persian poet) -1258 */<br>----------------------------------------------------------------------<br><a href="http://ImPersian.com">http://ImPersian.com
</a>     |     <a href="http://Hezardastan.org">http://Hezardastan.org</a><br>********************************************************