diff options
| author | Barry Warsaw | 2011-04-27 21:48:03 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-04-27 21:48:03 -0400 |
| commit | 4185e010820df965fdded840cd088ac7d0f49b53 (patch) | |
| tree | 2cb4efeb43e2a297202ae1ac2747c0773c0b59ac /src/mailman/bouncers/yahoo.py | |
| parent | 50823ea9d544114603b3f5d814914908b27749d6 (diff) | |
| parent | c2b79a2461501c6a83f02a11dba4d847f34e1b6e (diff) | |
| download | mailman-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.py | 4 |
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 |
