# Exim bouncer module for Mailman """Parse bounce messages generated by Exim. Exim adds an X-Failed-Recipients: header to bounce messages containing an "addresslist" of failed addresses. """ def process(mlist, msg): # return just the route-address elements of the addresslist addrs = map(lambda x: x[1], msg.getaddrlist('X-Failed-Recipients')) return addrs or None