From 78af69cf92b70f02be49fe730a3587b9b182bfe7 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Mon, 19 Jul 2021 11:14:00 -0700 Subject: [PATCH] Changed CheckonList to append comment to rule if there is a comment --- maps/lib/MAPS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.17.1