From eea27951e62a1a2be6a1b708623ca8583f9c397a Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 6 Apr 2014 10:58:17 -0700 Subject: For from_is_list, if no real name in From, use email address. --- Mailman/Handlers/CookHeaders.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index 804c5a9f..1333e650 100755 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -121,6 +121,8 @@ def process(mlist, msg, msgdata): # Do we change the from so the list takes ownership of the email if mm_cfg.ALLOW_FROM_IS_LIST and mlist.from_is_list and not fasttrack: realname, email = parseaddr(msg['from']) + if not realname: + realname = email replies = getaddresses(msg.get('reply-to', '')) reply_addrs = [x[1].lower() for x in replies] if reply_addrs: -- cgit v1.2.3