You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2015/07/12 16:05:25 UTC

[Bug 7219] New: Incorrect use of __BODY_TEXT_LINE

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7219

            Bug ID: 7219
           Summary: Incorrect use of __BODY_TEXT_LINE
           Product: Spamassassin
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Rules
          Assignee: dev@spamassassin.apache.org
          Reporter: rwmaillists@googlemail.com

__BODY_TEXT_LINE counts the number of lines (i.e. paragraphs) in the body
counting the Subject as one. Where this is used in __BODY_URI_ONLY and
__EMPTY_BODY, no account is taken of the possibility that the the subject is
missing or empty. This allows __EMPTY_BODY to fire when there is one paragraph
in the body and __BODY_URI_ONLY when there is a second paragraph.

I suggest adding:

 header __NONEMPTY_SUBJ Subject =~ /\S/

and using it to adjust the arithmetic in __EMPTY_BODY and __BODY_URI_ONLY.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7219] Incorrect use of __BODY_TEXT_LINE

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7219

Henrik Krohns <ap...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apache@hege.li

--- Comment #2 from Henrik Krohns <ap...@hege.li> ---
Could someone please fix these rules, now that we have a nosubject tflag too?
Needs a feature if check for it..

Seems Bill also made some test rules, but they are still just that?

billcole/21_bug_7219.cf
jhardin/20_misc_testing.cf

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7219] Incorrect use of __BODY_TEXT_LINE

Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7219

Bill Cole <sa...@billmail.scconsult.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrl@psfc.mit.edu

--- Comment #1 from Bill Cole <sa...@billmail.scconsult.com> ---
*** Bug 7519 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.