]> git.pld-linux.org Git - packages/mailman.git/blob - mailman-umbrella-anon-hack.patch
- hack for moderated umbrella list of moderated lists
[packages/mailman.git] / mailman-umbrella-anon-hack.patch
1 This is a hack usable only if you want
2 a moderated umbrella list of moderated lists.
3
4 Set anonymous_list to Yes for umbrella list and allow posts
5 from umbrella list to be accepted by sublists without moderation.
6
7 This patch makes possible to reply to original poster instead of umbrella list.
8
9 --- mailman-2.1.9/Mailman/Handlers/Cleanse.py~  2006-01-15 22:01:35.000000000 +0100
10 +++ mailman-2.1.9/Mailman/Handlers/Cleanse.py   2008-04-16 16:28:46.000000000 +0200
11 @@ -34,8 +34,9 @@
12      del msg['urgent']
13      # We remove other headers from anonymous lists
14      if mlist.anonymous_list:
15 -        syslog('post', 'post to %s from %s anonymized',
16 +        syslog('post', 'post to %s from %s anonymizored',
17                 mlist.internal_name(), msg.get('from'))
18 +        msg['Reply-To'] = msg.get('from')
19          del msg['from']
20          del msg['reply-to']
21          del msg['sender']
22 @@ -43,7 +44,7 @@
23          del msg['x-originating-email']
24          i18ndesc = str(uheader(mlist, mlist.description, 'From'))
25          msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
26 -        msg['Reply-To'] = mlist.GetListEmail()
27 +        # msg['Reply-To'] = mlist.GetListEmail()
28      # Some headers can be used to fish for membership
29      del msg['return-receipt-to']
30      del msg['disposition-notification-to']
This page took 0.097623 seconds and 4 git commands to generate.