summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-04-11 04:45:33 +0000
committerbwarsaw2002-04-11 04:45:33 +0000
commit27b13bd0c47578a002c6efed68a10e2b18a51caa (patch)
tree720a4f142cddfdeb2cb2a91aee8f525262955910
parentd9dff24ad9d11e765cacb2dfdb8a70cd9767b6b2 (diff)
downloadmailman-27b13bd0c47578a002c6efed68a10e2b18a51caa.tar.gz
mailman-27b13bd0c47578a002c6efed68a10e2b18a51caa.tar.zst
mailman-27b13bd0c47578a002c6efed68a10e2b18a51caa.zip
_dispose(): There are reports of None's showing up in the addrs. Not
sure why that is, but let's filter them out anyway.
-rw-r--r--Mailman/Queue/BounceRunner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Queue/BounceRunner.py b/Mailman/Queue/BounceRunner.py
index a2131fc42..02524cabc 100644
--- a/Mailman/Queue/BounceRunner.py
+++ b/Mailman/Queue/BounceRunner.py
@@ -87,6 +87,10 @@ class BounceRunner(Runner):
syslog('bounce', 'discarding unrecognized, message-id: %s',
msg.get('message-id', 'n/a'))
return
+ # BAW: It's possible that there are None's in the list of addresses,
+ # although I'm unsure how that could happen. Possibly ScanMessages()
+ # can let None's sneak through. In any event, this will kill them.
+ addrs = filter(None, addrs)
# Okay, we have some recognized addresses. We now need to register
# the bounces for each of these. If the bounce came to the site list,
# then we'll register the address on every list in the system, but