Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: devel

[Bug 6216] check_blank_line_ratio does not properly calculate blank lines

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Oct 30, 2009, 12:25 PM

Post #1 of 2 (129 views)
Permalink
[Bug 6216] check_blank_line_ratio does not properly calculate blank lines

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6216

Mark Martinec <Mark.Martinec[at]ijs.si> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal

--- Comment #1 from Mark Martinec <Mark.Martinec[at]ijs.si> 2009-10-30 12:25:50 UTC ---
> The check_blank_line_ration assumes that the return value for
> $pms->get_decoded_body_text_array() is an array of lines. This is incorrect,
> it is actually an array of paragraph chunks. The function needs to be adjusted
> to account for the different return value.
>
> This causes hits for BLANK_LINES_* rules (which apparently we only have one of
> now) to miss.

Considering that the SA::Message::new already compresses multiple blank lines
right during acquisition of a message:

# also merge multiple blank lines into a single one
my $start;
# iterate over lines in reverse order
for (my $cnt=$#message; $cnt>=0; $cnt--) {
$message[$cnt] =~ s/\015\012/\012/;
# line is blank
if ($message[$cnt] !~ /\S/) {

I wonder what is the check_blank_line_ratio supposed to count anyway?

--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


bugzilla-daemon at bugzilla

Oct 30, 2009, 1:19 PM

Post #2 of 2 (117 views)
Permalink
[Bug 6216] check_blank_line_ratio does not properly calculate blank lines [In reply to]

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6216

--- Comment #2 from Mark Martinec <Mark.Martinec[at]ijs.si> 2009-10-30 13:19:04 UTC ---
Bug 6216: fix Plugin::BodyEval::check_blank_line_ratio()
Sending lib/Mail/SpamAssassin/Plugin/BodyEval.pm
Committed revision 831439.


This fixes the reported concern - but does not address the fact
that blank lines have already been squashed.

--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.