https://rt-wiki.bestpractical.com/index.php?title=Blacklist&feed=atom&action=historyBlacklist - Revision history2024-03-28T13:26:36ZRevision history for this page on the wikiMediaWiki 1.37.2https://rt-wiki.bestpractical.com/index.php?title=Blacklist&diff=363&oldid=prevAdmin: 2 revisions imported2016-04-06T20:03:20Z<p>2 revisions imported</p>
<p><b>New page</b></p><div>To provide the ability to add a list of "blacklist" email addresses that will always be removed.<br />
<br />
Add the following code to $RT_HOME/lib/RT/Action/[[SendEmail]].pm<br />
<br />
<nowiki># Add the configured blacklist addresses<br />
my $site_blacklist = $RT::Blacklist;<br />
if( $site_blacklist ) {<br />
@blacklist = split( /,/, $site_blacklist );<br />
}<br />
<br />
</nowiki><br />
<br />
These lines of code should go immediately after:<br />
<br />
<nowiki># Let's grab the SquelchMailTo attribue and push those entries into the @blacklist<br />
my @non_recipients = $self-&gt;TicketObj-&gt;SquelchMailTo;<br />
foreach my $attribute (@non_recipients) {<br />
push @blacklist, $attribute-&gt;Content;<br />
}<br />
<br />
</nowiki><br />
<br />
In the "[[RemoveInappropriateRecipients]]" sub.<br />
<br />
Add the following property to the $RT_HOME/etc/[[RT Config|RT_Config]].pm<br />
<br />
Set( $Blacklist, '&lt;comma seperated list of addresses here&gt;' );</div>Admin