[Rt-commit] r18635 - rt/3.8/trunk/lib/RT/Action
    elacour at bestpractical.com 
    elacour at bestpractical.com
       
    Tue Mar  3 09:53:31 EST 2009
    
    
  
Author: elacour
Date: Tue Mar  3 09:53:29 2009
New Revision: 18635
Modified:
   rt/3.8/trunk/lib/RT/Action/SendEmail.pm
Log:
Don't assume that people were using "yes" for RT-Attach-Message until now,
rather don't attach if it's set to n|no|0|off|false.
Modified: rt/3.8/trunk/lib/RT/Action/SendEmail.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Action/SendEmail.pm	(original)
+++ rt/3.8/trunk/lib/RT/Action/SendEmail.pm	Tue Mar  3 09:53:29 2009
@@ -218,7 +218,7 @@
 
     # Build up a MIME::Entity that looks like the original message.
     $self->AddAttachments if ( $MIMEObj->head->get('RT-Attach-Message')
-                               && ( $MIMEObj->head->get('RT-Attach-Message') =~ /^yes$/i ) );
+                               && ( $MIMEObj->head->get('RT-Attach-Message') !~ /^(n|no|0|off|false)$/i ) );
 
     $self->AddTickets;
 
    
    
More information about the Rt-commit
mailing list