summaryrefslogtreecommitdiff
path: root/Mailman/Bouncers/Exim.py
diff options
context:
space:
mode:
authorbwarsaw2001-02-15 03:49:40 +0000
committerbwarsaw2001-02-15 03:49:40 +0000
commitb23aba751bdd33faeb409867783e96510b57637d (patch)
tree3803ffdfc49bf3c839f242206802e42ca14e57d6 /Mailman/Bouncers/Exim.py
parent2092282e4f9ec91b2e3a45936566474e88d5a602 (diff)
downloadmailman-b23aba751bdd33faeb409867783e96510b57637d.tar.gz
mailman-b23aba751bdd33faeb409867783e96510b57637d.tar.zst
mailman-b23aba751bdd33faeb409867783e96510b57637d.zip
Diffstat (limited to 'Mailman/Bouncers/Exim.py')
-rw-r--r--Mailman/Bouncers/Exim.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/Bouncers/Exim.py b/Mailman/Bouncers/Exim.py
index 604b52b02..dce093483 100644
--- a/Mailman/Bouncers/Exim.py
+++ b/Mailman/Bouncers/Exim.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -21,9 +21,9 @@ an `addresslist' of failed addresses.
"""
+from mimelib.address import getaddresses
+
+
def process(msg):
- addrs = []
- for fullname, addr in msg.getaddrlist('x-failed-recipients'):
- addrs.append(addr)
- return addrs or None
+ return [a for n, a in getaddresses(msg.getall('x-failed-recipients'))]