Request Tracker RT BlackList

Request Tracker >4.2 RT 4.2 BlackList.

Add RT_SiteConfig.pm

Set($SquelchList, ‘root@example.edu,www-data@example.edu,nobody@example.edu’);

Edit perl5/site_perl/RT/Action/SendEmail.pm
Find # Cycle through the people we’re sending.
And add befor

+ # BEGIN SNL Modification: global squelch list

+ # This allows you to add a variable to RT_SiteConfig.pm containing addresses which will always be squelched:
+ # Set($SquelchList, ‘root@example.edu,www-data@example.edu,nobody@example.edu’);
+ if ($RT::SquelchList) {
+ $RT::Logger->debug(“Using global squelch list: $RT::SquelchList\n”);
+ my @addr_list;
+ push @addr_list, split(/,/, $RT::SquelchList);
+ foreach (@addr_list)
+ {
+ $blacklist{$_}=’BlackList’;
+ $RT::Logger->debug(“Add to Black List email $_\n”);
+ }
+ }
+ # END SNL Modification: global squelch list

# Cycle through the people we’re sending to and pull out anyone that meets any of the callbacks

Comments are closed.