[Mailman-Users] Problem archiving Japanese messages

Akira Tagata tagata at rand.co.jp
Wed May 31 10:30:14 CEST 2000


> Date: Tue, 30 May 2000 17:52:04 +0900
> From: Oskar Bartenstein <oskar at ifcomputer.co.jp>

Thanks for your suggestion.

> In /home/mailman/Mailman/mm_cfg.py  I use
> 
> PUBLIC_EXTERNAL_ARCHIVER = '(/usr/local/bin/nkf -e |/usr/bin/mhonarc -rcfile /us
> r/lib/perl5/site_perl/5.005/mhonarc.rc -add -umask 022 -outdir /home/mailman/arc
> hives/public/%(listname)s -multipg  -expireage 2592000 -idxsize 15 -reverse  -id
> xfname index.html)'


I have modified Archiver.py to invoke nkf from Mailman before the internal
archiver process as follows.  Your hint was so valuable.


| $ diff Mailman/Archiver/Archiver.py Mailman/Archiver/Archiver.py.20000531 
| 233,241d232
| < 		    ########## nkf before internal archiver ##########
| < 		    import popen2
| < 		    (nkfout, nkfin) = popen2.popen2('/usr/bin/nkf -me')
| < 		    nkfin.write(txt)
| < 		    nkfin.close()
| < 		    tmptxt = nkfout.read()
| < 		    nkfout.close()
| < 		    txt = tmptxt
| < 		    ########## nkf before internal archiver ##########

The original code is from Mailman v1.1 on the Debian GNU/Linux 2.1
distribution.

This may not be a good manner because I am only a newbie for Python.


> 
> Oskar
> --
> Tue, 30 May 2000 17:07:56 +0900 Akira Tagata <tagata at rand.co.jp> said:
> <snip>
> > I need to know where and/or how I insert this filter(*) in the Mailman.
> <snip>
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users
> 


-- 
Akira Tagata <tagata at rand.co.jp>
R&D Computer Co., Ltd. / Tokyo




More information about the Mailman-Users mailing list