summaryrefslogtreecommitdiff
path: root/Mailman/Queue/BounceRunner.py
diff options
context:
space:
mode:
authorbwarsaw2002-03-07 16:54:39 +0000
committerbwarsaw2002-03-07 16:54:39 +0000
commit28f3c81ad961c15ea56670ffc67fc51877c3c5f2 (patch)
tree93c8ae965216ce514dd23f028228865f4abdf20e /Mailman/Queue/BounceRunner.py
parented43a9e6b7b152ca3e1a8012a4239e778683205c (diff)
downloadmailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.tar.gz
mailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.tar.zst
mailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.zip
Diffstat (limited to 'Mailman/Queue/BounceRunner.py')
-rw-r--r--Mailman/Queue/BounceRunner.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/Mailman/Queue/BounceRunner.py b/Mailman/Queue/BounceRunner.py
index 9e81bfa32..1bb0c578e 100644
--- a/Mailman/Queue/BounceRunner.py
+++ b/Mailman/Queue/BounceRunner.py
@@ -106,10 +106,16 @@ class BounceRunner(Runner):
mo = re.search(mm_cfg.VERP_REGEXP, to)
if not mo:
continue # no match of regexp
- if bmailbox <> mo.group('bounces'):
- continue # not a bounce to our list
- # All is good
- addr = '%s@%s' % mo.group('mailbox', 'host')
+ try:
+ if bmailbox <> mo.group('bounces'):
+ continue # not a bounce to our list
+ # All is good
+ addr = '%s@%s' % mo.group('mailbox', 'host')
+ except IndexError:
+ syslog('error',
+ "VERP_REGEXP doesn't yield the right match groups: %s",
+ mm_cfg.VERP_REGEXP)
+ return 0
# Now, if this message has come to the site list, then search not
# only it, but all the mailing lists on the system, registering a
# bounce with each for this address.