summaryrefslogtreecommitdiff
path: root/Mailman/MailList.py
diff options
context:
space:
mode:
authorbwarsaw1999-01-12 23:35:44 +0000
committerbwarsaw1999-01-12 23:35:44 +0000
commit133beef3878b9274bce991a400eac18f8b582bc3 (patch)
treee0763c76772acb3f9446a8634e7b71244debcc93 /Mailman/MailList.py
parent9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf (diff)
downloadmailman-133beef3878b9274bce991a400eac18f8b582bc3.tar.gz
mailman-133beef3878b9274bce991a400eac18f8b582bc3.tar.zst
mailman-133beef3878b9274bce991a400eac18f8b582bc3.zip
HasExplicitDest(): Use new getallrecipients() so that we really do get
all the To: and Cc: line recipients. Previously, we'd only get the first of any existing headers, and this meant that even if the list appeared on a later Cc: header, the message would get incorrectly flagged as an implicit destination.
Diffstat (limited to 'Mailman/MailList.py')
-rw-r--r--Mailman/MailList.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index cbce9617d..5949efaab 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -945,7 +945,7 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
lowname = string.lower(self.real_name)
recips = []
# First check all dests against simple name:
- for recip in msg.getaddrlist('to') + msg.getaddrlist('cc'):
+ for recip in msg.getallrecipients():
curr = string.lower(string.split(recip[1], '@')[0])
if lowname == curr:
return 1