diff options
| author | bwarsaw | 2002-03-07 16:54:39 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-07 16:54:39 +0000 |
| commit | 28f3c81ad961c15ea56670ffc67fc51877c3c5f2 (patch) | |
| tree | 93c8ae965216ce514dd23f028228865f4abdf20e | |
| parent | ed43a9e6b7b152ca3e1a8012a4239e778683205c (diff) | |
| download | mailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.tar.gz mailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.tar.zst mailman-28f3c81ad961c15ea56670ffc67fc51877c3c5f2.zip | |
| -rw-r--r-- | Mailman/Queue/BounceRunner.py | 14 |
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. |
