From: Nicolas Iooss Date: Sun, 26 Jan 2014 19:09:42 +0000 (+0100) Subject: NL bounces: treat "failed " as a failed action X-Git-Tag: xorg/1.1.12~47 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8da7bf9f841bbb66819b19ceff5b44652cef2056;p=platal.git NL bounces: treat "failed " as a failed action Signed-off-by: Nicolas Iooss --- 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