Hi !

This bug  is fixed  in 1.5.7-3. I  don't know  when exactly the  bug was
fixed. The  bug was in  util/mail.py.  Here is  a patch that  solves the
bug:

--- mail.py	9 Jun 2007 08:16:52 -0000	1.1
+++ mail.py	9 Jun 2007 08:17:15 -0000	1.2
@@ -76,6 +76,13 @@
     charset.body_encoding = QP
     msg.set_charset(charset)
     
+    
+    # work around a bug in python 2.4.3 and above:
+    msg.set_payload('=')
+    if msg.as_string().endswith('='):
+        text = charset.body_encode(text)
+
+                            
     msg.set_payload(text)
     
     # Create message headers
-- 
10.0 times 0.1 is hardly ever 1.0.
            - The Elements of Programming Style (Kernighan & Plauger)

Reply via email to