# IDENTIFY-SPAMMER.RC # # Function to analyze an email to see if it is spam from the # specified spammer. LOCALTAG=no :0 * TESTTYPE ?? (ALL|HEADER) { INCLUDERC=${SBDIR}/functions/check-received.rc } :0 * SBCONFIG ?? (Analyze|Debug) * TESTTYPE ?? (ALL|HEADER) * ? ${TEST} -f ${TESTCIDR} { INCLUDERC=${SBDIR}/functions/check-header-cidr.rc } :0 E * LOCALTAG ?? no * TESTTYPE ?? (ALL|HEADER) * ? ${TEST} -f ${TESTCIDR} { INCLUDERC=${SBDIR}/functions/check-header-cidr.rc } :0 * SBCONFIG ?? (Analyze|Debug) * TESTTYPE ?? (ALL|BODY) * LEANTAG ?? no { INCLUDERC=${SBDIR}/functions/check-body.rc } :0 E * LOCALTAG ?? no * TESTTYPE ?? (ALL|BODY) * LEANTAG ?? no { INCLUDERC=${SBDIR}/functions/check-body.rc } :0 * SBCONFIG ?? (Analyze|Debug) * TESTTYPE ?? (ALL|BODY) * LEANTAG ?? no { INCLUDERC=${SBDIR}/functions/check-patterns.rc } :0 E * LOCALTAG ?? no * TESTTYPE ?? (ALL|BODY) * LEANTAG ?? no { INCLUDERC=${SBDIR}/functions/check-patterns.rc } # If any of the tests for this spammer came up positive, # add an appropriate header to the email and adjust the SBSCORE # appropriately, and reset the internal variables to their initial # states. # :0 * LOCALTAG ?? yes { SBLOG="B2R-${TESTNAME}" INCLUDERC=${SBDIR}/functions/loglevel.rc :0 * $ ${SBSCORE}^0 * $ ${TESTSCORE}^0 { SBSCORE=$= } }