[Mailman-Users] private lists with real name signatures
Stephen J. Turnbull
stephen at xemacs.org
Wed May 26 19:08:55 CEST 2010
Mark Sapiro writes:
> Sure. A somewhat more complete handler (and perhaps more Pythonic as
> well) would be:
>
>
> from email.Utils import parseaddr
> def process(mlist, msg, msgdata):
> poster_name, addrs = parseaddr(msg['from'])
> if not poster_name and mlist.isMember(addrs):
> poster_name = mlist.getMemberName(address) or ''
A
oops-y here, I think ----------------------------+
> msgdata.setdefault('decoration-data', {}).update(
> poster_name=poster_name)
More information about the Mailman-Users
mailing list