summaryrefslogtreecommitdiff
path: root/mail-filter/spamassassin/files/spamassassin-3.4.1-bug_7404.patch
blob: 563110fcb1f39cf6abff7961721dc86bcd13743b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/lib/Mail/SpamAssassin/PerMsgStatus.pm	(revision 1790817)
+++ b/lib/Mail/SpamAssassin/PerMsgStatus.pm	(working copy)
@@ -896,16 +896,16 @@ 
     $str .= shift @{$ary};
   }
   undef $ary;
-  chomp ($str); $str .= " [...]\n";
 
   # in case the last line was huge, trim it back to around 200 chars
   local $1;
-  $str =~ s/^(.{,200}).*$/$1/gs;
+  $str =~ s/^(.{200}).+$/$1 [...]/gm;
+  chomp ($str); $str .= "\n";
 
   # now, some tidy-ups that make things look a bit prettier
-  $str =~ s/-----Original Message-----.*$//gs;
+  $str =~ s/-----Original Message-----.*$//gm;
   $str =~ s/This is a multi-part message in MIME format\.//gs;
-  $str =~ s/[-_\*\.]{10,}//gs;
+  $str =~ s/[-_*.]{10,}//gs;
   $str =~ s/\s+/ /gs;
 
   # add "Content preview:" ourselves, so that the text aligns