diff options
| author | bwarsaw | 1999-01-12 23:35:44 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-01-12 23:35:44 +0000 |
| commit | 133beef3878b9274bce991a400eac18f8b582bc3 (patch) | |
| tree | e0763c76772acb3f9446a8634e7b71244debcc93 /Mailman/MailList.py | |
| parent | 9ca90e0d63e4f375ce14fac2e9cccf6df321dfaf (diff) | |
| download | mailman-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.py | 2 |
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 |
