[Mailman-Users] iso-8859-8-i messages goes to the shunt directory
lkolchin at univ.haifa.ac.il
lkolchin at univ.haifa.ac.il
Mon Nov 7 17:06:43 CET 2005
Hello Tokio,
Thank you very much for the patch, it is working!!!
I've just added:
# Arabic and Hebrew encoding aliases
import encodings.aliases
encodings.aliases.aliases.update({
'iso_8859_6_e': 'iso8859_6',
'iso_8859_6_i': 'iso8859_6',
'iso_8859_8_e': 'iso8859_8',
'iso_8859_8_i': 'iso8859_8',
})
To /usr/lib/mailman/bin/paths.py and restarted mailman.
Should I do the same change to all paths.py files and then restart the mailman?
These are all paths.py files I have on my system:
/usr/lib/mailman/bin/paths.py
/usr/lib/mailman/cron/paths.py
/usr/lib/mailman/scripts/paths.py
/usr/lib/mailman/tests/paths.py
Would you also suggest to insert this change to mailman package by default?
Best Regards,
Leon Kolchinsky
-----Original Message-----
From: Tokio Kikuchi [mailto:tkikuchi at is.kochi-u.ac.jp]
Sent: Monday, November 07, 2005 2:08 PM
To: לאון קולצ'ינסקי
Cc: mailman-users at python.org
Subject: Re: [Mailman-Users] iso-8859-8-i messages goes to the shunt directory
lkolchin at univ.haifa.ac.il wrote:
> Hello All,
>
> I have the following of problem:
>
> When message sent to the list in Hebrew Language in iso-8859-8-i
> encoding, it doesn't sent and goes directly to /var/lib/mailman/qfiles/shunt, so I have to run /usr/lib/mailman/bin/unshunt manually to release these messages.
> But then these messages released, the subject line of these messages is empty.
>
> Here are some headers of these kind of messages:
>
> Content-Type: text/html;
> charset="iso-8859-8-i"
> Content-Transfer-Encoding: quoted-printable
> Subject:
> =?iso-8859-8-i?B?Rnc6IPf46eDkIODn+OXw5CDs8OXx8untIOz08Okg5OTu+ODkIA==?
> =
>
> What's the problem here and how can I solve it?
It looks like python official codecs don't support RFC-1556 bi-directional handling of Arabic and Hebrew charsets. I really don't know how we should solve this but how about this following patch?
You may also want to add your language description in mm_cfg.py (see Defaults.py for the format).
% diff -u paths.py.orig paths.py
--- paths.py.orig Mon Nov 7 20:38:34 2005
+++ paths.py Mon Nov 7 20:51:21 2005
@@ -58,3 +58,12 @@
# changes this.
import korean
import korean.aliases
+# Arabic and Hebrew encoding aliases
+import encodings.aliases
+encodings.aliases.aliases.update({
+ 'iso_8859_6_e': 'iso8859_6',
+ 'iso_8859_6_i': 'iso8859_6',
+ 'iso_8859_8_e': 'iso8859_8',
+ 'iso_8859_8_i': 'iso8859_8',
+})
+
--
Tokio Kikuchi tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/
More information about the Mailman-Users
mailing list