[Rt-commit] rt branch, 4.0/rfc2231-param-continuations, updated. rt-4.0.4-116-g44a4386

Thomas Sibley trs at bestpractical.com
Fri Dec 9 16:52:43 EST 2011


The branch, 4.0/rfc2231-param-continuations has been updated
       via  44a4386d75edb98b1f5c591107eee21c41f4f3d0 (commit)
      from  1dca0dd8d3b711f2df33976d7f0ef8eed9e2418d (commit)

Summary of changes:
 lib/RT/I18N.pm |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit 44a4386d75edb98b1f5c591107eee21c41f4f3d0
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri Dec 9 16:38:13 2011 -0500

    Remove unnecessary decoding since SetMIMEHeadToEncoding already handles it
    
    SetMIMEHeadToEncoding is called just a few lines up and uses the same
    conditional ($preserve_words).

diff --git a/lib/RT/I18N.pm b/lib/RT/I18N.pm
index 3d2eb73..60a588e 100644
--- a/lib/RT/I18N.pm
+++ b/lib/RT/I18N.pm
@@ -219,13 +219,6 @@ sub SetMIMEEntityToEncoding {
 
     my $head = $entity->head;
 
-    # convert at least MIME word encoded attachment filename
-    foreach my $attr (qw(content-type.name content-disposition.filename)) {
-	if ( my $name = $head->mime_attr($attr) and !$preserve_words ) {
-	    $head->mime_attr( $attr => DecodeMIMEWordsToUTF8($name) );
-	}
-    }
-
     # If this is a textual entity, we'd need to preserve its original encoding
     $head->replace( "X-RT-Original-Encoding" => $charset )
 	if $head->mime_attr('content-type.charset') or IsTextualContentType($head->mime_type);

-----------------------------------------------------------------------


More information about the Rt-commit mailing list