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 2006/12/04 03:04:36 UTC

[Bug 5218] New: Eval tests like (window_open) fail

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218

           Summary: Eval tests like (window_open) fail
           Product: Spamassassin
           Version: 3.1.7
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Rules (Eval Tests)
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: mail@lohrere.com


These three and I don't know how many others do not work. I note they use the  
EvalTests.pm file which also has the eval:html_tag_exists function which does 
work and I have found numerous others on forums complaining of the same fault 
with no resolution. It was quite a shocj to have a spam open a browser window 
on me with these rules in place.

eval:html_test('javascript')
eval:html_test('window_focus')
eval:html_test('window_open')



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From felicity@apache.org  2006-12-04 11:37 -------
closing since there isn't really an issue here.



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218





------- Additional Comments From felicity@apache.org  2006-12-03 20:24 -------
(In reply to comment #2)
> These following examples were taken from 
> http://spamassassin.apache.org/full/2.6x/dist/rules/20_html_tests.cf
> 
> body HTML_WIN_FOCUS		eval:html_test('window_focus')
> body HTML_WIN_OPEN		eval:html_test('window_open')
> 
> If they do not exist is SA then why are they here and also still used by rules 
> emporium?

You're looking at information for a release from several years ago.  Lots of
things have changed.  And I can't tell you why a third party does things.

> There needs to be a way testing for specific commands in the HTML part of an 
> email that will not be picked up in the body of an email

if you think there's a deficiency, patches are welcome. :)



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218





------- Additional Comments From felicity@apache.org  2006-12-03 19:09 -------
I think the issue here is that you're expecting html_test() to do something it's
not meant to do.  For instance, HTML.pm doesn't set those values anywhere, so
testing for them isn't going to result in anything.

What exactly is the issue?



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218





------- Additional Comments From jm@jmason.org  2006-12-04 02:54 -------
'Many people are out there asking why these rules don't work'

they should probably have asked here, or in the SA users list, because this is
the  first I've heard of it ;)

'Perhaps then 
if this is the case someone should make a clearer reference some where that 
they no longer work and save a lot of people a lot of time. '

if these were officially supported, public APIs, maybe that would have been
appropriate.  however, they're not.



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218





------- Additional Comments From mail@lohrere.com  2006-12-03 20:35 -------
(In reply to comment #3)
> (In reply to comment #2)
> > These following examples were taken from 
> > http://spamassassin.apache.org/full/2.6x/dist/rules/20_html_tests.cf
> > 
> > body HTML_WIN_FOCUS		eval:html_test('window_focus')
> > body HTML_WIN_OPEN		eval:html_test('window_open')
> > 
> > If they do not exist is SA then why are they here and also still used by 
rules 
> > emporium?
> You're looking at information for a release from several years ago.  Lots of
> things have changed.  And I can't tell you why a third party does things.
> > There needs to be a way testing for specific commands in the HTML part of 
an 
> > email that will not be picked up in the body of an email
> if you think there's a deficiency, patches are welcome. :)

Many people are out there asking why these rules don't work and nobody has been 
able to answer them. I guess you are saying the relevant .pm files have been 
changed for some rason so these rules are no lnger active or work. Perhaps then 
if this is the case someone should make a clearer reference some where that 
they no longer work and save a lot of people a lot of time. Just a thought... 
thanks.



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

[Bug 5218] Eval tests like (window_open) fail

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5218





------- Additional Comments From mail@lohrere.com  2006-12-03 20:15 -------
(In reply to comment #1)
> I think the issue here is that you're expecting html_test() to do something 
it's
> not meant to do.  For instance, HTML.pm doesn't set those values anywhere, so
> testing for them isn't going to result in anything.
> What exactly is the issue?

I am trying to test for the javascript function window.open as found in the 
following taken from a recent spam email.

<BODY bgColor=#ffffff=
onload=3D"window.open('http://pws.prserv.net/usinet.pinnacl/AutomaticPS3.htm'); 
self.focus();">

These following examples were taken from 
http://spamassassin.apache.org/full/2.6x/dist/rules/20_html_tests.cf

body HTML_WIN_FOCUS		eval:html_test('window_focus')
describe HTML_WIN_FOCUS		Javascript to change window focus

body HTML_WIN_OPEN		eval:html_test('window_open')
describe HTML_WIN_OPEN		Javascript to open a new window

If they do not exist is SA then why are they here and also still used by rules 
emporium?

There needs to be a way testing for specific commands in the HTML part of an 
email that will not be picked up in the body of an email




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