[Rt-commit] r7804 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: .

clsung at bestpractical.com clsung at bestpractical.com
Thu May 10 04:35:30 EDT 2007


Author: clsung
Date: Thu May 10 04:35:30 2007
New Revision: 7804

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Action/SendEmail.pm

Log:
 r1025 at going04:  clsung | 2007-05-10 15:27:44 +0800
 - Filename is optional, it can be undef (ref: MIME::Entity)


Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Action/SendEmail.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Action/SendEmail.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Action/SendEmail.pm	Thu May 10 04:35:30 2007
@@ -353,8 +353,10 @@
         Type     => $attach->ContentType,
         Charset  => $attach->OriginalEncoding,
         Data     => $attach->OriginalContent,
-        Filename => $self->MIMEEncodeString( $attach->Filename,
-            RT->Config->Get('EmailOutputEncoding') ),
+        Filename => defined ($attach->Filename) ? 
+          $self->MIMEEncodeString( $attach->Filename, RT->Config->Get('EmailOutputEncoding') )
+          :
+          undef,
         'RT-Attachment:' => $self->TicketObj->Id."/".$self->TransactionObj->Id."/".$attach->id,
         Encoding => '-SUGGEST',
     );


More information about the Rt-commit mailing list