From 8da7bf9f841bbb66819b19ceff5b44652cef2056 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sun, 26 Jan 2014 20:09:42 +0100 Subject: [PATCH] NL bounces: treat "failed " as a failed action Signed-off-by: Nicolas Iooss --- bin/newsletter.bounces.processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/newsletter.bounces.processor.py b/bin/newsletter.bounces.processor.py index b75580d..e55251a 100755 --- a/bin/newsletter.bounces.processor.py +++ b/bin/newsletter.bounces.processor.py @@ -182,7 +182,7 @@ def findAddressInBounce(bounce): return None email = recipient_match.group(1) # Check the action field - if content['Action'].lower() != 'failed': + if content['Action'].lower().strip() != 'failed': print('! Not a failed action (%s).' % content['Action']) return None -- 2.1.4