[Rt-commit] [svn] r1670 - in rt/branches/3.3-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Wed Oct 20 15:20:20 EDT 2004


Author: jesse
Date: Wed Oct 20 15:20:19 2004
New Revision: 1670

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/lib/RT/EmailParser.pm
Log:
 r6056 at tinbook:  jesse | 2004-10-20T19:20:39.940786Z
 RT-Ticket: 5594
 RT-Status: resolved
 RT-UpdateType: correspond
 
 EmailParser updates applied to RT 3.3 to fix subject lines that are encoded and multi-line
 


Modified: rt/branches/3.3-TESTING/lib/RT/EmailParser.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/EmailParser.pm	(original)
+++ rt/branches/3.3-TESTING/lib/RT/EmailParser.pm	Wed Oct 20 15:20:19 2004
@@ -255,12 +255,17 @@
 
     #Now we've got a parsed mime object. 
 
+    # Unfold headers that are have embedded newlines
+    #  Better do this before conversion or it will break
+    #  with multiline encoded Subject (RFC2047) (fsck.com #5594)
+    
+    $self->Head->unfold;
+
+
     # try to convert text parts into utf-8 charset
     RT::I18N::SetMIMEEntityToEncoding($self->{'entity'}, 'utf-8');
 
 
-    # Unfold headers that are have embedded newlines
-    $self->Head->unfold;
 
 
 }


More information about the Rt-commit mailing list