]> git.pld-linux.org Git - packages/mailman.git/blob - mailman-umbrella-anon-hack.patch
systemd and systemd-cronjobs support added
[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,16 +34,17 @@
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 +        del msg['reply-to']
19 +        msg['Reply-To'] = msg.get('from')
20          del msg['from']
21 -        del msg['reply-to']
22          del msg['sender']
23          # Hotmail sets this one
24          del msg['x-originating-email']
25          i18ndesc = str(uheader(mlist, mlist.description, 'From'))
26          msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
27 -        msg['Reply-To'] = mlist.GetListEmail()
28 +        # msg['Reply-To'] = mlist.GetListEmail()
29      # Some headers can be used to fish for membership
30      del msg['return-receipt-to']
31      del msg['disposition-notification-to']
This page took 0.053431 seconds and 3 git commands to generate.