-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Keith,

Monday, October 27, 2003, 5:03:57 AM, you wrote:

KCI> Robert Menschel <[EMAIL PROTECTED]> wrote:

>> # RM rules to identify a completely empty HTML email
>> header   RM_hc_HTML      Content-Type =~ /text\/html/
>> describe RM_hc_HTML      Email is text/html format
>> score    RM_hc_HTML      0.001

KCI> That seems to be pretty similar to the existing MIME_HTML_ONLY 
KCI> rule.

Yes, it does.

Difference, MIME_HTML_ONLY uses __MIME_HTML_ONLY which is an eval rule
against the body of an email. My rule above tests the actual Content-Type
of the header. I'm not familiar enough with the eval methods to know
whether the two are equivalent. Can anyone answer this?

MIME_HTML_ONLY also includes a sub-test !__RCVD_BY_HOTMAIL, which I'm not
sure should be included here, but now that you've pointed me in this
direction, if __MIME_HTML_ONLY tests the Content-Type header, then I
should be able to fully replace RM_hc_HTML with __MIME_HTML_ONLY 

>> rawbody  RM_rb_TITLE     /<title>/i
>> describe RM_rb_TITLE     Testing for HTML title in emails
>> score    RM_rb_TITLE     0.001

KCI> That and the other tag tests are better done with the 
KCI> html_tag_exists() eval test (see HTML_TAG_EXISTS_BASE, for 
KCI> example).  Your version doesn't match if there are attributes 
KCI> (which happens quite often on BODY).

Good. So I can replace these with (for instance)
> body RM_b_TITLE eval:html_tag_exists('title')
(Eventually these will become non-scoring __tests, of course.)

Two of my three domains have been migrated from 2.55 to 2.60, and once
the third is migrated I expect I'll go through the full 2.60 rule set to
identify anything new in 2.60 which duplicates a personal rule in my
user_prefs, to eliminate the duplication. I might would have found
MIME_HTML_ONLY during that process, but I would probably have missed
html_tag_exists().

I haven't yet downloaded the 2.60 package. Does it have documentation
concerning these internal tests (those not referenced in 50_scores.cf,
which so far has been my end-user SA bible)? If not, then does anyone
know if there'll be additional documentation provided in future releases
to help us non-perl-programming end users better understand what's
available to us? 

Thanks.

Bob Menschel

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBP53chpebK8E4qh1HEQLWWQCg2VlZrwWd20fDt5C31rdIVsP2j9UAoPHY
Qbkb8qNnKO772x1EJdgnovHM
=MOEt
-----END PGP SIGNATURE-----




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to