You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dan <a...@patnode.net> on 2006/05/04 00:35:06 UTC
20_bodytests
I'm deconstructing the standard filter set and have a few questions.
These are as much about learning SA capabilities as understanding the
particular example:
1) These don't score by themselves but I can't find any meta they
apply to. Does something depend on them? Are they used for some
kind of reference?:
rawbody __MIME_BASE64 eval:check_for_mime('mime_base64_count')
describe __MIME_BASE64 Includes a base64 attachment
rawbody __MIME_QP eval:check_for_mime('mime_qp_count')
describe __MIME_QP Includes a quoted-printable attachment
2) What do 'tflags' do?:
describe MIME_CHARSET_FARAWAY MIME character set indicates foreign
language
tflags MIME_CHARSET_FARAWAY userconf
3) What are 'test' lines?:
describe EMAIL_ROT13 Body contains a ROT13-encoded email address
test EMAIL_ROT13 ok qhabs^ebtref(pbz
test EMAIL_ROT13 ok zxrggyre^riv-vap(pbz
test EMAIL_ROT13 fail duncf-nospam@rogers.com
Thanks,
Dan
Re: 20_bodytests
Posted by Sanford Whiteman <sw...@cypressintegrated.com>.
Dan-80 wrote:
>
> 2) What do 'tflags' do?:
>
> describe MIME_CHARSET_FARAWAY MIME character set indicates foreign
> language
> tflags MIME_CHARSET_FARAWAY userconf
>
tflags SYMBOLIC_TEST_NAME [ {net|nice|learn|userconf|noautolearn} ]
Used to set flags on a test. These flags are used in the score-determination
back end system for details of the test's behaviour. Please see
bayes_auto_learn and use_auto_whitelist for more information about tflag
interaction with those systems. The following flags can be set:
net
The test is a network test, and will not be run in the mass checking system
or if -L is used, therefore its score should not be modified.
nice
The test is intended to compensate for common false positives, and should be
assigned a negative score.
userconf
The test requires user configuration before it can be used (like language-
specific tests).
learn
The test requires training before it can be used.
noautolearn
The test will explicitly be ignored when calculating the score for learning
systems.
Dan-80 wrote:
>
> 3) What are 'test' lines?:
>
test SYMBOLIC_TEST_NAME (ok|fail) Some string to test against
Define a regression testing string. You can have more than one regression
test string per symbolic test name. Simply specify a string that you wish
the test to match.
These tests are only run as part of the test suite - they should not affect
the general running of SpamAssassin.
--Sandy
--
View this message in context: http://www.nabble.com/20_bodytests-t1553240.html#a4312791
Sent from the SpamAssassin - Users forum at Nabble.com.