[Rt-commit] [svn] r1815 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Thu Nov 11 03:24:52 EST 2004


Author: jesse
Date: Thu Nov 11 03:24:52 2004
New Revision: 1815

Modified:
   rt/branches/PLATANO-EXPERIMENTAL-CSS/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/EmailParser.pm
Log:
 r9077 at tinbook:  jesse | 2004-11-11T02:59:17.907274Z
  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/PLATANO-EXPERIMENTAL-CSS/lib/RT/EmailParser.pm
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/EmailParser.pm	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/EmailParser.pm	Thu Nov 11 03:24:52 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