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)
------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org