# CHECK-BODY-DOMAINS.RC # # Function to analyze domains from the message body # of a spam to see if they belong to/come from the # specified spammer. # # Check first body domain # LOCALBUFFER=`${GREP} -i -x "${FIRSTBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD1 ?? no * ! FIRSTBODYDOMAIN ?? ^example\.com$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD1=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${FIRSTBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check second body domain # LOCALBUFFER=`${GREP} -i -x "${SECONDBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD2 ?? no * ! SECONDBODYDOMAIN ?? ^example\.com$ * $ ! SECONDBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD2=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${SECONDBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check third body domain # LOCALBUFFER=`${GREP} -i -x "${THIRDBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD3 ?? no * ! THIRDBODYDOMAIN ?? ^example\.com$ * $ ! THIRDBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * $ ! THIRDBODYDOMAIN ?? ^${SECONDBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD3=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${THIRDBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check fourth body domain # LOCALBUFFER=`${GREP} -i -x "${FOURTHBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD4 ?? no * ! FOURTHBODYDOMAIN ?? ^example\.com$ * $ ! FOURTHBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * $ ! FOURTHBODYDOMAIN ?? ^${SECONDBODYDOMAIN}$ * $ ! FOURTHBODYDOMAIN ?? ^${THIRDBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD4=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${FOURTHBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check fifth body domain # LOCALBUFFER=`${GREP} -i -x "${FIFTHBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD5 ?? no * ! FIFTHBODYDOMAIN ?? ^example\.com$ * $ ! FIFTHBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * $ ! FIFTHBODYDOMAIN ?? ^${SECONDBODYDOMAIN}$ * $ ! FIFTHBODYDOMAIN ?? ^${THIRDBODYDOMAIN}$ * $ ! FIFTHBODYDOMAIN ?? ^${FOURTHBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD5=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${FIFTHBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check sixth body domain # LOCALBUFFER=`${GREP} -i -x "${SIXTHBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD6 ?? no * ! SIXTHBODYDOMAIN ?? ^example\.com$ * $ ! SIXTHBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * $ ! SIXTHBODYDOMAIN ?? ^${SECONDBODYDOMAIN}$ * $ ! SIXTHBODYDOMAIN ?? ^${THIRDBODYDOMAIN}$ * $ ! SIXTHBODYDOMAIN ?? ^${FOURTHBODYDOMAIN}$ * $ ! SIXTHBODYDOMAIN ?? ^${FIFTHBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD6=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${SIXTHBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc } # Check seventh body domain # LOCALBUFFER=`${GREP} -i -x "${SEVENTHBODYDOMAIN}" ${TESTDOMAINS}` :0 * HD7 ?? no * ! SEVENTHBODYDOMAIN ?? ^example\.com$ * $ ! SEVENTHBODYDOMAIN ?? ^${FIRSTBODYDOMAIN}$ * $ ! SEVENTHBODYDOMAIN ?? ^${SECONDBODYDOMAIN}$ * $ ! SEVENTHBODYDOMAIN ?? ^${THIRDBODYDOMAIN}$ * $ ! SEVENTHBODYDOMAIN ?? ^${FOURTHBODYDOMAIN}$ * $ ! SEVENTHBODYDOMAIN ?? ^${FIFTHBODYDOMAIN}$ * $ ! SEVENTHBODYDOMAIN ?? ^${SIXTHBODYDOMAIN}$ * ! LOCALBUFFER ?? ^^^^ { LOCALTAG=yes HD7=yes SBLOG="C3R-${TESTNAME} (Body Domain: ${SEVENTHBODYDOMAIN})" INCLUDERC=${SBDIR}/functions/loglevel.rc }