Message128202
email.encoders.encode_base64 returns a str of a single long line instead of breaking it up into 76 chars line as per RFC 2045, and as implemented by email.base64mime.
Solution:
In /usr/lib/python3.1/email/encoders.py, use encodebytes instead of b64encode:
--- encoders.py 2011-02-08 09:37:21.025030051 -0700
+++ encoders.py.yves 2011-02-08 09:38:04.945608365 -0700
@@ -12,7 +12,7 @@
]
-from base64 import b64encode as _bencode
+from base64 import encodebytes as _bencode
from quopri import encodestring as _encode |
|
Date |
User |
Action |
Args |
2011-02-09 02:10:00 | yves@zioup.com | set | recipients:
+ yves@zioup.com |
2011-02-09 02:10:00 | yves@zioup.com | set | messageid: <1297217400.48.0.931931004137.issue11156@psf.upfronthosting.co.za> |
2011-02-09 02:09:59 | yves@zioup.com | link | issue11156 messages |
2011-02-09 02:09:59 | yves@zioup.com | create | |
|