pleskのメーリングリストだが初期インストール時には、連番が付かない。
調べてみると、mailmanは1.6系から連番機能に対応しているとのことだが、
pleskの最新バージョンでもなぜか1.5系。
1.6系入れといてくれればいいのに(´〇`;)
> yum list |grep mailman
mailman.x86_64 3:2.1.5.1-34.rhel4.6 installed
psa-mailman-configurator.x86_64 8.6.0-cos4.build860807 installed
かといってpsa-mailman-configurator.x86_64とかも有るし、下手にyumでアップデートも怖い。
で、どうにかならんのかと色々調べてみると、patchにぶち当たった。
この人と同じような悩み。
http://mm.tkikuchi.net/indexja-old.htmlからpatchを入手し当ててやればいけそう。
> wget http://mm.tkikuchi.net/mailman-2.1.5+patch.20040901.gz
> tar zxf mailman-2.1.5+patch.20040901.gz
mailmanのディレクトリに移動
pleskだと/usr/lib/mailmanだった。
まあ、怖いのでこのディレクトリを一旦tmpとかにコピッて実行したけどね(>_<)
途中、いくつかのファイルはスルーするとmailmanの本文にライン(時間: 金 8月 19, 2005 6:01 pm あたり)に書いてある。
以下は実行例だが、その辺skipしてます。
> patch -p0 < mailman-2.1.5+patch.20040901
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: README.POSTFIX
|===================================================================
|--- README.POSTFIX (revision 1)
|+++ README.POSTFIX (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: messages/mailman.pot
|===================================================================
|--- messages/mailman.pot (revision 1)
|+++ messages/mailman.pot (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
57 out of 57 hunks ignored
can't find file to patch at input line 1828
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: messages/Makefile.in
|===================================================================
|--- messages/Makefile.in (revision 1)
|+++ messages/Makefile.in (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file messages/de/LC_MESSAGES/mailman.po
patching file messages/ja/LC_MESSAGES/mailman.po
can't find file to patch at input line 5251
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: messages/docstring.files
|===================================================================
|--- messages/docstring.files (revision 1)
|+++ messages/docstring.files (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file messages/hr/LC_MESSAGES/mailman.po
patching file messages/ro/LC_MESSAGES/mailman.po
can't find file to patch at input line 7961
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: messages/marked.files
|===================================================================
|--- messages/marked.files (revision 1)
|+++ messages/marked.files (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
patching file messages/es/LC_MESSAGES/mailman.po
patching file messages/et/LC_MESSAGES/mailman.po
patching file bin/check_perms
Hunk #1 succeeded at 1 with fuzz 2.
can't find file to patch at input line 9105
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: NEWS
|===================================================================
|--- NEWS (revision 1)
|+++ NEWS (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 9120
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: UPGRADING
|===================================================================
|--- UPGRADING (revision 1)
|+++ UPGRADING (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 9166
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: admin/www/i18n.html
|===================================================================
|--- admin/www/i18n.html (revision 1)
|+++ admin/www/i18n.html (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 9205
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: admin/www/i18n.ht
|===================================================================
|--- admin/www/i18n.ht (revision 1)
|+++ admin/www/i18n.ht (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 9226
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: admin/www/site.html
|===================================================================
|--- admin/www/site.html (revision 1)
|+++ admin/www/site.html (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
can't find file to patch at input line 9277
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: admin/www/site.ht
|===================================================================
|--- admin/www/site.ht (revision 1)
|+++ admin/www/site.ht (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 9301
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: misc/Makefile.in
|===================================================================
|--- misc/Makefile.in (revision 1)
|+++ misc/Makefile.in (revision 19)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file templates/ca/postack.txt
patching file templates/ja/verify.txt
patching file cron/checkdbs
patching file Mailman/Queue/CommandRunner.py
patching file Mailman/Gui/NonDigest.py
patching file Mailman/Gui/General.py
patching file Mailman/Gui/Privacy.py
Hunk #1 FAILED at 430.
1 out of 1 hunk FAILED -- saving rejects to file Mailman/Gui/Privacy.py.rej
patching file Mailman/Gui/ContentFilter.py
patching file Mailman/Utils.py
Hunk #2 succeeded at 824 (offset 7 lines).
patching file Mailman/versions.py
patching file Mailman/Version.py
patching file Mailman/Bouncer.py
patching file Mailman/Handlers/Scrubber.py
Hunk #5 FAILED at 295.
Hunk #6 succeeded at 323 (offset 9 lines).
Hunk #8 succeeded at 368 (offset 9 lines).
Hunk #9 FAILED at 405.
Hunk #10 FAILED at 433.
3 out of 10 hunks FAILED -- saving rejects to file
Mailman/Handlers/Scrubber.py.rej
patching file Mailman/Handlers/MimeDel.py
patching file Mailman/Handlers/ToDigest.py
patching file Mailman/Handlers/Decorate.py
patching file Mailman/Handlers/CookHeaders.py
patching file Mailman/Cgi/confirm.py
Hunk #1 succeeded at 414 (offset 4 lines).
can't find file to patch at input line 10433
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Mailman/Defaults.py.in
|===================================================================
|--- Mailman/Defaults.py.in (revision 1)
|+++ Mailman/Defaults.py.in (revision 19)
--------------------------
File to patch: Mailman/Defaults.py
patching file Mailman/Defaults.py
patching file Mailman/Archiver/Archiver.py
patching file Mailman/Archiver/HyperArch.py
patching file Mailman/MailList.py
patching file Mailman/i18n.py
patching file Mailman/ListAdmin.py
Hunk #2 FAILED at 89.
Hunk #3 FAILED at 130.
2 out of 3 hunks FAILED -- saving rejects to file Mailman/ListAdmin.py.rej
と色々出て終了。
一応、当たった?
大体当たった?大体OK?faildとか出てるけど(-_-;)
で、後は
mailman/messages/ja/LC_MESSAGESの下で
> msgfmt -o mailman.mo mailman.po
をやって日本語化の更新。
後は、mailmanの管理画面で
[全体的オプション]>件名の先頭に付ける語句(subject_prefixの詳細)
ちゅーところがあるからここで
[ml %d]
とかやってやると完成。
参考URL
http://kapi.jp/kapi_blog/240
2009年06月10日
関連カテゴリ Linux Unix