From: Andrew DeFaria Date: Mon, 19 Jul 2021 18:14:00 +0000 (-0700) Subject: Changed CheckonList to append comment to rule if there is a comment X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=78af69cf92b70f02be49fe730a3587b9b182bfe7;p=clearscm.git Changed CheckonList to append comment to rule if there is a comment --- diff --git a/maps/lib/MAPS.pm b/maps/lib/MAPS.pm index 618fb67..d316fe7 100644 --- a/maps/lib/MAPS.pm +++ b/maps/lib/MAPS.pm @@ -458,7 +458,9 @@ sub CheckOnList ($$;$) { ? "$email_on_file\@" : $email_on_file; if ($sender and $sender =~ /$search_for/i) { - $rule = "Matching rule: ($listtype:$rec->{sequence}) \"$email_on_file\""; + my $comment = $rec->{comment} ? " - $rec->{comment}" : ''; + + $rule = "Matching rule: ($listtype:$rec->{sequence}) \"$email_on_file$comment\""; $rule .= " - $rec->{comment}" if $rec->{comment}; $status = 1;