summaryrefslogtreecommitdiff
path: root/src/mailman/bouncers/yahoo.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-04-27 21:48:03 -0400
committerBarry Warsaw2011-04-27 21:48:03 -0400
commit4185e010820df965fdded840cd088ac7d0f49b53 (patch)
tree2cb4efeb43e2a297202ae1ac2747c0773c0b59ac /src/mailman/bouncers/yahoo.py
parent50823ea9d544114603b3f5d814914908b27749d6 (diff)
parentc2b79a2461501c6a83f02a11dba4d847f34e1b6e (diff)
downloadmailman-4185e010820df965fdded840cd088ac7d0f49b53.tar.gz
mailman-4185e010820df965fdded840cd088ac7d0f49b53.tar.zst
mailman-4185e010820df965fdded840cd088ac7d0f49b53.zip
Restore the bounce detectors tests which previously got accidentally removed
in a merge mistake. Also, make the tests pass <wink>. Also, refactor find_components() into a separate function scan_module() so that we can just extract the components from a single module.
Diffstat (limited to 'src/mailman/bouncers/yahoo.py')
-rw-r--r--src/mailman/bouncers/yahoo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/bouncers/yahoo.py b/src/mailman/bouncers/yahoo.py
index 150fb66ef..bf687555a 100644
--- a/src/mailman/bouncers/yahoo.py
+++ b/src/mailman/bouncers/yahoo.py
@@ -57,7 +57,7 @@ class Yahoo:
# called an x-uidl: header, the value of which seems unimportant.
sender = parseaddr(msg.get('from', '').lower())[1] or ''
if not sender.startswith('mailer-daemon@yahoo'):
- return None
+ return set()
addresses = set()
state = ParseState.start
for line in email.Iterators.body_line_iterator(msg):
@@ -73,4 +73,4 @@ class Yahoo:
if mo:
# We're at the end of the error response.
break
- return list(addresses)
+ return addresses