[Rt-commit] r16554 - in rt/3.8/trunk: sbin

sartak at bestpractical.com sartak at bestpractical.com
Mon Oct 27 13:29:32 EDT 2008


Author: sartak
Date: Mon Oct 27 13:29:28 2008
New Revision: 16554

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/sbin/rt-email-dashboards.in

Log:
 r74616 at onn:  sartak | 2008-10-27 13:27:41 -0400
 Don't send email to the user name, some people do this intentionally


Modified: rt/3.8/trunk/sbin/rt-email-dashboards.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-email-dashboards.in	(original)
+++ rt/3.8/trunk/sbin/rt-email-dashboards.in	Mon Oct 27 13:29:28 2008
@@ -169,7 +169,7 @@
         }
 
         my $email = $subscription->SubValue('Recipient')
-                 || email_of($user);
+                 || $user->EmailAddress;
 
         eval { send_dashboard($currentuser, $email, $subscription) };
         error 'Caught exception: ' . $@ if $@;
@@ -333,13 +333,6 @@
     return $entity;
 }
 
-sub email_of {
-    my $user = shift;
-    return $user->EmailAddress if $user->EmailAddress;
-    return $user->Name if $user->Name =~ /\S@\S/;
-    return undef;
-}
-
 sub get_from {
     RT->Config->Get('DashboardAddress') || RT->Config->Get('OwnerEmail')
 }


More information about the Rt-commit mailing list