[Rt-commit] r18632 - rt/3.8/trunk/lib/RT/Action

elacour at bestpractical.com elacour at bestpractical.com
Tue Mar 3 07:42:16 EST 2009


Author: elacour
Date: Tue Mar  3 07:42:14 2009
New Revision: 18632

Modified:
   rt/3.8/trunk/lib/RT/Action/SendEmail.pm

Log:
Take care of RT-Attach-Message value so we don't add attachments if the value
is "no" for example (closes: #13259).
Thanks to Paul Vlaar.

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 07:42:14 2009
@@ -217,7 +217,8 @@
         'mime_words_ok', );
 
     # Build up a MIME::Entity that looks like the original message.
-    $self->AddAttachments if $MIMEObj->head->get('RT-Attach-Message');
+    $self->AddAttachments if ( $MIMEObj->head->get('RT-Attach-Message')
+                               && ( $MIMEObj->head->get('RT-Attach-Message') =~ /^yes$/i ) );
 
     $self->AddTickets;
 


More information about the Rt-commit mailing list