Mailman Customize
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mailman Customize [#de59693f]
japanese/mailman をカスタマイズして、書き換えた・追加した...
portupgrade -r すると、
Your Postfix hostname is non-default.
You must add "SMTPHOST = piano2nd.smb.net" to the bottom...
言われる
portupgradeなどで影響を受けそうなファイル達・・・
[[Mailman Anonymouse List]]
**「通し番号」の自動更新?? [#e5c0817d]
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?Ma...
/usr/local/mailman/bin/set_post_id.py ← Mailmanに...
&ref(set_post_id.py_mod);
** Anonymouse List の From: へ「(氏名)Full_name」を表示し...
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?Ma...
/usr/local/mailman/Mailman/Handlers/Cleanse.py_TFC
/usr/local/mailman/Mailman/Handlers/Cleanse.py ...
/usr/local/mailman/Mailman/Handlers/Cleanse.py_dist
&ref(Cleanse.py_mod);
さらに、配信時にCcと Toを消去する、クロスポスト対策版
&ref(Cleanse.py_mod_FC);
** 重要マーク付きで投稿されたメールの重要マークを除去する...
Cleanse.pyを編集
del msg['X-Priority']
del msg['Importance']
del msg['X-MSMail-Priority']
のヘッダを除去する
# Copyright (C) 1998-2006 by the Free Software Foundatio...
# NAGAE version
# This program is free software; you can redistribute it...
# modify it under the terms of the GNU General Public Li...
# as published by the Free Software Foundation; either v...
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will b...
# but WITHOUT ANY WARRANTY; without even the implied war...
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Pub...
# along with this program; if not, write to the Free Sof...
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Bos...
# USA.
"""Cleanse certain headers from all messages."""
import re
from email.Utils import formataddr
from Mailman.Utils import unique_message_id
from Mailman.Logging.Syslog import syslog
from Mailman.Handlers.CookHeaders import uheader
def process(mlist, msg, msgdata):
# Always remove this header from any outgoing messag...
# this after the information on the header is actual...
# permanent record of the header is saved.
del msg['approved']
# Remove this one too.
del msg['approve']
# And these too.
del msg['x-approved']
del msg['x-approve']
# Also remove this header since it can contain a pas...
del msg['urgent']
# We remove other headers from anonymous lists
if mlist.anonymous_list:
syslog('post', 'post to %s from %s anonymized',
mlist.internal_name(), msg.get('from'))
del msg['X-Priority']
del msg['Importance']
del msg['X-MSMail-Priority']
del msg['from']
del msg['to']
del msg['cc']
del msg['reply-to']
del msg['sender']
del msg['return-path']
# Hotmail sets this one
del msg['x-originating-email']
# And these can reveal the sender too
del msg['received']
# And so can the message-id so replace it.
del msg['message-id']
msg['Message-ID'] = unique_message_id(mlist)
for sender in msg.get_senders():
if mlist.isMember(sender):
break
else:
sender = msg.get_sender()
i18ndesc = str(uheader(mlist, mlist.getMemberNam...
if i18ndesc == '':
i18ndesc = str(uheader(mlist, mlist.descript...
msg['From'] = formataddr((i18ndesc, mlist.GetLis...
msg['Reply-To'] = mlist.GetListEmail()
uf = msg.get_unixfrom()
if uf:
uf = re.sub(r'\S*@\S*', mlist.GetListEmail()...
msg.set_unixfrom(uf)
# Some headers can be used to fish for membership
del msg['return-receipt-to']
del msg['disposition-notification-to']
del msg['x-confirm-reading-to']
# Pegasus mail uses this one... sigh
del msg['x-pmrqc']
**Gmail対策 [#n1954ebe]
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?cm...
/usr/local/mailman/Mailman/Handlers/CookHeaders.py_Gmail
/usr/local/mailman/Mailman/Handlers/CookHeaders.py ...
/usr/local/mailman/Mailman/Handlers/CookHeaders.py_dist
&ref(CookHeaders.py_Gmail_mod);
%% &ref(CookHeaders.py_mod); %%
*portupgrade -f japanese/mailman [#r84162dc]
[[Mailman on FreeBSD]]
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mailman Customize [#de59693f]
japanese/mailman をカスタマイズして、書き換えた・追加した...
portupgrade -r すると、
Your Postfix hostname is non-default.
You must add "SMTPHOST = piano2nd.smb.net" to the bottom...
言われる
portupgradeなどで影響を受けそうなファイル達・・・
[[Mailman Anonymouse List]]
**「通し番号」の自動更新?? [#e5c0817d]
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?Ma...
/usr/local/mailman/bin/set_post_id.py ← Mailmanに...
&ref(set_post_id.py_mod);
** Anonymouse List の From: へ「(氏名)Full_name」を表示し...
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?Ma...
/usr/local/mailman/Mailman/Handlers/Cleanse.py_TFC
/usr/local/mailman/Mailman/Handlers/Cleanse.py ...
/usr/local/mailman/Mailman/Handlers/Cleanse.py_dist
&ref(Cleanse.py_mod);
さらに、配信時にCcと Toを消去する、クロスポスト対策版
&ref(Cleanse.py_mod_FC);
** 重要マーク付きで投稿されたメールの重要マークを除去する...
Cleanse.pyを編集
del msg['X-Priority']
del msg['Importance']
del msg['X-MSMail-Priority']
のヘッダを除去する
# Copyright (C) 1998-2006 by the Free Software Foundatio...
# NAGAE version
# This program is free software; you can redistribute it...
# modify it under the terms of the GNU General Public Li...
# as published by the Free Software Foundation; either v...
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will b...
# but WITHOUT ANY WARRANTY; without even the implied war...
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Pub...
# along with this program; if not, write to the Free Sof...
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Bos...
# USA.
"""Cleanse certain headers from all messages."""
import re
from email.Utils import formataddr
from Mailman.Utils import unique_message_id
from Mailman.Logging.Syslog import syslog
from Mailman.Handlers.CookHeaders import uheader
def process(mlist, msg, msgdata):
# Always remove this header from any outgoing messag...
# this after the information on the header is actual...
# permanent record of the header is saved.
del msg['approved']
# Remove this one too.
del msg['approve']
# And these too.
del msg['x-approved']
del msg['x-approve']
# Also remove this header since it can contain a pas...
del msg['urgent']
# We remove other headers from anonymous lists
if mlist.anonymous_list:
syslog('post', 'post to %s from %s anonymized',
mlist.internal_name(), msg.get('from'))
del msg['X-Priority']
del msg['Importance']
del msg['X-MSMail-Priority']
del msg['from']
del msg['to']
del msg['cc']
del msg['reply-to']
del msg['sender']
del msg['return-path']
# Hotmail sets this one
del msg['x-originating-email']
# And these can reveal the sender too
del msg['received']
# And so can the message-id so replace it.
del msg['message-id']
msg['Message-ID'] = unique_message_id(mlist)
for sender in msg.get_senders():
if mlist.isMember(sender):
break
else:
sender = msg.get_sender()
i18ndesc = str(uheader(mlist, mlist.getMemberNam...
if i18ndesc == '':
i18ndesc = str(uheader(mlist, mlist.descript...
msg['From'] = formataddr((i18ndesc, mlist.GetLis...
msg['Reply-To'] = mlist.GetListEmail()
uf = msg.get_unixfrom()
if uf:
uf = re.sub(r'\S*@\S*', mlist.GetListEmail()...
msg.set_unixfrom(uf)
# Some headers can be used to fish for membership
del msg['return-receipt-to']
del msg['disposition-notification-to']
del msg['x-confirm-reading-to']
# Pegasus mail uses this one... sigh
del msg['x-pmrqc']
**Gmail対策 [#n1954ebe]
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?cm...
/usr/local/mailman/Mailman/Handlers/CookHeaders.py_Gmail
/usr/local/mailman/Mailman/Handlers/CookHeaders.py ...
/usr/local/mailman/Mailman/Handlers/CookHeaders.py_dist
&ref(CookHeaders.py_Gmail_mod);
%% &ref(CookHeaders.py_mod); %%
*portupgrade -f japanese/mailman [#r84162dc]
[[Mailman on FreeBSD]]
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: