Friendly name for digest sender

Hi folks,
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?
--Bryan
-- Bryan Blackwell -- Unix Systems Engineer bryan@skiblack.com

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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Bryan Blackwell
-
Mark Sapiro