[Mailman-Users] 64 bit encoding
Mark Sapiro
mark at msapiro.net
Wed Nov 4 12:10:04 EST 2015
On 11/03/2015 06:42 PM, Ruben Safir wrote:
> I'm converting my mailing lists from majordomo to mailman using postfix.
> A lot of little issues have cropped up but the biggest problem I have
> currently is that it seems that mailman is converting files to 64 bit
> which is screwing up my home cooked archives but good.
Actually, Mailman is sending messages in UTF-8 character set as base64
encoded. Actually, many MUAs will also base64 encode UTF-8 message bodies.
This is actually a python email library thing. You can change the
encoding for UTF-8 message bodies with the following patch to
Mailman/Message.py, but if your messages are not predominately ascii
text, you won't like the result any better.
diff -u 2.1/Mailman/Message.py 21/Mailman/Message.py
--- 2.1/Mailman/Message.py 2014-05-17 18:34:20.240159000 -0700
+++ 21/Mailman/Message.py 2015-11-04 08:50:31.772899979 -0800
@@ -36,6 +36,10 @@
from Mailman import mm_cfg
from Mailman import Utils
+email.Charset.add_charset('utf-8',
+ email.Charset.SHORTEST,
+ email.Charset.QP,
+ 'utf-8')
COMMASPACE = ', '
mo = re.match(r'([\d.]+)', email.__version__)
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list