You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/08/11 00:05:45 UTC

svn commit: rev 36189 - spamassassin/trunk/lib/Mail/SpamAssassin

Author: felicity
Date: Tue Aug 10 15:05:44 2004
New Revision: 36189

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm
Log:
bug 3669: strip newlines off headers before the bayes tokenizer runs.  also fixes debug display issue.

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm	(original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm	Tue Aug 10 15:05:44 2004
@@ -518,11 +518,14 @@
   for (@hdrs) {
     next unless /\S/;
     my ($hdr, $val) = split(/:/, $_, 2);
-    $val ||= '';
 
     # remove user-specified headers here, after Received, in case they
     # want to ignore that too
     next if exists $user_ignore{$hdr};
+
+    # Prep the header value
+    $val ||= '';
+    chomp($val);
 
     # special tokenization for some headers:
     if ($hdr =~ /^(?:|X-|Resent-)Message-Id$/i) {