aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2014-04-06 10:58:17 -0700
committerMark Sapiro <mark@msapiro.net>2014-04-06 10:58:17 -0700
commiteea27951e62a1a2be6a1b708623ca8583f9c397a (patch)
tree4ddb899d42e0e117b64ef1ed4392e76b023737a2 /Mailman/Handlers/CookHeaders.py
parent076f41e5de958548dcde0d978424dfc5da530cc0 (diff)
downloadmailman2-eea27951e62a1a2be6a1b708623ca8583f9c397a.tar.gz
mailman2-eea27951e62a1a2be6a1b708623ca8583f9c397a.tar.xz
mailman2-eea27951e62a1a2be6a1b708623ca8583f9c397a.zip
For from_is_list, if no real name in From, use email address.
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-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: