SendEmailRemoveInappropriateRecipients: Difference between revisions

From Request Tracker Wiki
Jump to navigation Jump to search
m (2 revisions imported)
 
(No difference)

Latest revision as of 15:37, 6 April 2016

There is a bug in the RemoveInappropriateRecipients subroutine of SendEmail.pm in version 3.8.0 of RT. Fix it with this patch. There's also a ticket for this at http://rt3.fsck.com/Ticket/Display.html?id=11636

--- lib/RT/Action/SendEmail.pm 2008-08-15 11:23:59.000000000 -0700

+++ local/lib/RT/Action/SendEmail.pm    2008-08-15 11:23:52.000000000 -0700
@@ -797,7 +797,7 @@
     # system blacklist

     # Trim leading and trailing spaces. # Todo - we should really be canonicalizing all addresses
-    @blacklist = map { s/\s//g; } @blacklist;
+    @blacklist = map { s/\s//g; $_; } @blacklist;
     foreach my $type (@EMAIL_RECIPIENT_HEADERS) {
         my @addrs;
         foreach my $addr ( @{ $self->{$type} } ) {