Changed CheckonList to append comment to rule if there is a comment
authorAndrew DeFaria <Andrew@DeFaria.com>
Mon, 19 Jul 2021 18:14:00 +0000 (11:14 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Mon, 19 Jul 2021 18:14:00 +0000 (11:14 -0700)
maps/lib/MAPS.pm

index 618fb67..d316fe7 100644 (file)
@@ -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;