You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2007/06/05 07:33:50 UTC
svn commit: r544388 -
/spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm
Author: sidney
Date: Mon Jun 4 22:33:49 2007
New Revision: 544388
URL: http://svn.apache.org/viewvc?view=rev&rev=544388
Log:
bug 5492: VBounce rule was looking in header instead of body for whitelisted relays
Modified:
spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm
Modified: spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm?view=diff&rev=544388&r1=544387&r2=544388
==============================================================================
--- spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm (original)
+++ spamassassin/branches/3.2/lib/Mail/SpamAssassin/Plugin/VBounce.pm Mon Jun 4 22:33:49 2007
@@ -119,7 +119,8 @@
# skip past the headers
my $foundnlnl = 0;
foreach my $line ($pristine =~ /^(.*)$/gm) {
- if ($line =~ /^$/) {
+ # note: do not use any re match here, it'll reset /g
+ if ($line eq "" || $line eq "\012" || $line eq "\015\012") {
$foundnlnl = 1; last;
}
}