On 02/16/2017 01:48 PM, Bryan Blackwell wrote:
> 
> I noticed recently that there's no real name for my digest mail - the 
> -request address is correctly displayed, but there no friendly name.  So on 
> my Yahoo mail the pop up display for message shows the sender name as "null". 
>  Clearly this isn't a big deal, but I looked and couldn't find a setting, is 
> there an easy way to have a name associated with that address?


You (or the admins of your list's server) would need to patch the code
in Mailman/Handlers/ToDigest.py. Near the top, change

> from email.Utils import getaddresses, formatdate

to

> from email.Utils import getaddresses, formatdate, formataddr

and in the send_i18n_digests function, change the lines

>     mimemsg['From'] = mlist.GetRequestEmail()

and

>     rfc1153msg['From'] = mlist.GetRequestEmail()

to

>     mimemsg['From'] = formataddr(mlist.description, mlist.GetRequestEmail())

and

>     rfc1153msg['From'] = formataddr(mlist.description, 
> mlist.GetRequestEmail())

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to