aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMailman/Handlers/CookHeaders.py2
1 files changed, 2 insertions, 0 deletions
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: