[Mailman-Developers] Fixing DMARC problems with .invalid munge
Bob Puff
bob at nleaudio.com
Sat May 17 07:13:38 CEST 2014
> Exactly how to patch this depends on what Mailman version you're
> starting with, but you basically want some code like this.
>
> name, addrs = parseaddr(msg.get('from'))
> addrs += '.invalid'
> del msg['from']
> msg['From'] = formataddr((name, addrs))
>
> If you put it in Mailman/Handlers/Cleanse.py or
> Mailman/Handlers/CookHeaders.py, parseaddr and formataddr are already
> imported from email.Utils so the above 4 lines added to the
> process(mlist, msg, msgdata) function are all you need.
>
(Including your other email)
Right, I have a few highly-customized MM installs, and need to do this by hand
- can't just install the latest and greatest.
Thanks, I'll start testing now.
Bob
More information about the Mailman-Developers
mailing list