From fac222a460aa01239f963709cf5035236164b5d6 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Sun, 31 Dec 2000 22:59:58 +0000 Subject: [PATCH] added 'last_if_match' logic to rules scan loop --- src/spong-message.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/spong-message.pl b/src/spong-message.pl index 1d874ac..1d17fe4 100755 --- a/src/spong-message.pl +++ b/src/spong-message.pl @@ -12,7 +12,7 @@ # (2) Added rules based paging (Stephen Johnson Nov 14, 1998) # (3) Added checks against Acks and downtime (Stephen Johnson Mar 17, 1999) # -# $Id: spong-message.pl,v 1.24 2000/12/31 05:50:26 sljohnson Exp $ +# $Id: spong-message.pl,v 1.25 2000/12/31 22:59:58 sljohnson Exp $ use lib "@@LIBDIR@@"; @@ -496,6 +496,13 @@ RULE: $contact->{'rcpt'} : $contact) ); add_contact(\@con,$contact); } + + if( $match and $rules->{'last_if_match'} == 1 ) { + debug("'last_if_match' flag set on rule $c $rule->{'name'}," . + " exiting rules scan"); + last; + } + } # Load the messaging functions -- 2.30.2