SOURCES: mailman-umbrella-anon-hack.patch (NEW) - hack for moderat...

baggins baggins at pld-linux.org
Wed Apr 16 16:40:58 CEST 2008


Author: baggins                      Date: Wed Apr 16 14:40:58 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- hack for moderated umbrella list of moderated lists

---- Files affected:
SOURCES:
   mailman-umbrella-anon-hack.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mailman-umbrella-anon-hack.patch
diff -u /dev/null SOURCES/mailman-umbrella-anon-hack.patch:1.1
--- /dev/null	Wed Apr 16 16:40:58 2008
+++ SOURCES/mailman-umbrella-anon-hack.patch	Wed Apr 16 16:40:53 2008
@@ -0,0 +1,30 @@
+This is a hack usable only if you want
+a moderated umbrella list of moderated lists.
+
+Set anonymous_list to Yes for umbrella list and allow posts
+from umbrella list to be accepted by sublists without moderation.
+
+This patch makes possible to reply to original poster instead of umbrella list.
+
+--- mailman-2.1.9/Mailman/Handlers/Cleanse.py~	2006-01-15 22:01:35.000000000 +0100
++++ mailman-2.1.9/Mailman/Handlers/Cleanse.py	2008-04-16 16:28:46.000000000 +0200
+@@ -34,8 +34,9 @@
+     del msg['urgent']
+     # We remove other headers from anonymous lists
+     if mlist.anonymous_list:
+-        syslog('post', 'post to %s from %s anonymized',
++        syslog('post', 'post to %s from %s anonymizored',
+                mlist.internal_name(), msg.get('from'))
++        msg['Reply-To'] = msg.get('from')
+         del msg['from']
+         del msg['reply-to']
+         del msg['sender']
+@@ -43,7 +44,7 @@
+         del msg['x-originating-email']
+         i18ndesc = str(uheader(mlist, mlist.description, 'From'))
+         msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
+-        msg['Reply-To'] = mlist.GetListEmail()
++        # msg['Reply-To'] = mlist.GetListEmail()
+     # Some headers can be used to fish for membership
+     del msg['return-receipt-to']
+     del msg['disposition-notification-to']
================================================================


More information about the pld-cvs-commit mailing list