An eval test could calculate what %age of the message body is made up of the image tag -- a regex couldn't. So if you want the rule to be "if the email message is pretty much just an image tag" then you need to use an eval test. If you're assuming they're actually putting a height= attribute in the image tag, but don't want to do a more sophisticated check, then you should be OK with just a regex, but it probably won't be as accurate of a test.
C On Mon, 2002-02-25 at 16:09, Duncan Findlay wrote: > On Mon, Feb 25, 2002 at 08:51:52AM -0500, Greg Ward wrote: > > On 22 February 2002, Michael Moncur said: > > > I think virtually any message sent as one big graphic would be spam, > > > but I can't think of a good way to detect it using a regular > > > expression. Perhaps you could look for <IMG...height= followed by a > > > number greater than x (300?). > > > > I don't think a regex is the right tool to use here. SA has stretched > > regex usage to impressive extremes, but it's *not* a Turing-complete > > language! This should be implemented as an eval test. > > > > I disagree. > An eval test here would be rather useless, as it could provide little more > functionality than a regex, unless it actually attempted to download the > image. > > -- > Duncan Findlay > > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk > > _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk