Duplicate Line Breaks With RT and Microsoft Outlook

Multiple line breaks on emails sent from Outlook 2007/2010 to Request Tracker (RT) May this be useful to someone else bashing their head against the wall with Outlook and RT. Diff is against RT 4.0.13, apply in lib/RT/.

See also my mailing list post about it.

1
2
3
4
5
6
7
8
9
10
11
—– EmailParser.pm.orig 2013-05-30 14:42:41.267746074 -0400
+++ EmailParser.pm  2013-05-30 13:25:21.679733464 -0400
@@ -599,7 +599,7 @@

         # use the unencoded string
         my $content = $text_part->bodyhandle->as_string;
–        if ( $content =~ s/\n\n/\n/g ) {
+        if ( $content =~ s/\n\n/\n/g  || $content =~ s/\r\n/\n/g) {

             # Outlook puts a space on extra newlines, remove it
             $content =~ s/\ +$//mg;

Comments