#author("2023-10-08T05:19:19+09:00","default:kuji","kuji")
#author("2023-10-09T05:14:51+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mailman 移行作業 [#h95bb346]

**リストのメールアドレスを取り出す [#aa6b7009]
Mailman の list_name というメーリングリストのメールアドレスは、
/usr/local/mailman/lists/list_name に保存されているが、Majordomo のような一行一アドレスというファイル構造にはなっていない。~
外部アプリでユーザ認証を行う際にはそのままでは難しいので、メールアドレスをテキストで取り出したい。
 /usr/local/mailman/bin/list_members list_name > /usr/local/mailman/lists/list_name/list_member

 root@guard:~:23_10_08:12:44 # /usr/local/mailman/bin/list_members chiiki-ih_old > /usr/local/mailman/lists/chiiki-ih_old/list_member
 root@guard:~:23_10_08:16:15 # /usr/local/mailman/bin/list_members covid-19_old > /usr/local/mailman/lists/covid-19_old/list_member
 root@guard:~:23_10_08:16:31 # /usr/local/mailman/bin/list_members fukushi_old > /usr/local/mailman/lists/fukushi_old/list_member
 root@guard:~:23_10_08:16:39 # /usr/local/mailman/bin/list_members gakkoui_old > /usr/local/mailman/lists/gakkoui_old/list_member
 root@guard:~:23_10_08:16:49 # /usr/local/mailman/bin/list_members gakujyutu_old > /usr/local/mailman/lists/gakujyutu_old/list_member
 root@guard:~:23_10_08:16:56 # /usr/local/mailman/bin/list_members im-ped-qq_old > /usr/local/mailman/lists/im-ped-qq_old/list_member
 root@guard:~:23_10_08:17:03 # /usr/local/mailman/bin/list_members iryouhoken_old > /usr/local/mailman/lists/iryouhoken_old/list_member
 root@guard:~:23_10_08:17:10 # /usr/local/mailman/bin/list_members kaigohoken_old > /usr/local/mailman/lists/kaigohoken_old/list_member
 root@guard:~:23_10_08:17:22 # /usr/local/mailman/bin/list_members kaiin-g_old > /usr/local/mailman/lists/kaiin-g_old/list_member
 root@guard:~:23_10_08:17:28 # /usr/local/mailman/bin/list_members keiri_old > /usr/local/mailman/lists/keiri_old/list_member
 root@guard:~:23_10_08:17:39 # /usr/local/mailman/bin/list_members kenshin_old > /usr/local/mailman/lists/kenshin_old/list_member
 root@guard:~:23_10_08:17:43 # /usr/local/mailman/bin/list_members kinmui_old > /usr/local/mailman/lists/kinmui_old/list_member
 root@guard:~:23_10_08:17:48 # /usr/local/mailman/bin/list_members kouhou_old > /usr/local/mailman/lists/kouhou_old/list_member
 root@guard:~:23_10_08:17:53 # /usr/local/mailman/bin/list_members kyuukyuu-i_old > /usr/local/mailman/lists/kyuukyuu-i_old/list_member
 root@guard:~:23_10_08:17:56 # /usr/local/mailman/bin/list_members sanpo_old > /usr/local/mailman/lists/sanpo_old/list_member
 root@guard:~:23_10_08:18:02 # /usr/local/mailman/bin/list_members soumu_old > /usr/local/mailman/lists/soumu_old/list_member


**Mailmanの通し番号を変更する [#rc9bd74c]
 #/MAILMAN_INSTALL_DIR/bin/withlist LIST-NAME
 
 # /usr/local/mailman/bin/withlist list_name
 Loading list LIST-NAME (unlocked)
 The variable `m' is the LIST-NAME MailList instance
 >>> m.Lock()
 >>> m.post_id
 6.0
 >>> m.post_id = 150
 >>> m.Save()
 >>> ^D        <-- Ctrl + D
 Unlocking (but not saving) list: LIST-NAME
 Finalizing
 #

 root@guard:~:23_10_08:6:11 # /usr/local/mailman/bin/withlist n-core
 Loading list n-core (unlocked)
 The variable `m' is the n-core MailList instance
 >>> m.Lock()
 >>> m.post_id
 4.0
 >>> 13204
 13204
 >>> m.Save()
 >>>
 
 Unlocking (but not saving) list: n-core
 Finalizing



----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS