# CHECK-BODY-CIDR.RC # # Function to analyze the IPs from the message body, # to see if they belong to the specified spammer. # # Check first body IP (FIRSTBODYIP). # :0 * ! FIRSTBODYIP ?? ^000\.000\.000\.000$ { LT2=no LOCALIP=${FIRSTBODYIP} LOCALIPREGEXP=${FIRSTBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${FIRSTBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc # Check second body IP (SECONDBODYIP). # LT3=no :0 * SPAMTAG ?? yes { LT3=yes } :0 * SBCONFIG ?? (Analyze|Debug) { LT3=no } :0 * LT3 ?? no * ! SECONDBODYIP ?? ^000\.000\.000\.000$ * $ ! SECONDBODYIP ?? ${FIRSTBODYIP} { LT2=no LOCALIP=${SECONDBODYIP} LOCALIPREGEXP=${SECONDBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${SECONDBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc # Check third body IP (THIRDBODYIP). # LT3=no :0 * SPAMTAG ?? yes { LT3=yes } :0 * SBCONFIG ?? (Analyze|Debug) { LT3=no } :0 * LT3 ?? no * ! THIRDBODYIP ?? ^000\.000\.000\.000$ * $ ! THIRDBODYIP ?? ${FIRSTBODYIP} * $ ! THIRDBODYIP ?? ${SECONDBODYIP} { LT2=no LOCALIP=${THIRDBODYIP} LOCALIPREGEXP=${THIRDBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${THIRDBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc # Check fourth body IP (FOURTHBODYIP). # LT3=no :0 * SPAMTAG ?? yes { LT3=yes } :0 * SBCONFIG ?? (Analyze|Debug) { LT3=no } :0 * LT3 ?? no * ! FOURTHBODYIP ?? ^000\.000\.000\.000$ * $ ! FOURTHBODYIP ?? ${FIRSTBODYIP} * $ ! FOURTHBODYIP ?? ${SECONDBODYIP} * $ ! FOURTHBODYIP ?? ${THIRDBODYIP} { LT2=no LOCALIP=${FOURTHBODYIP} LOCALIPREGEXP=${FOURTHBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${FOURTHBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc # Check fifth body IP (FIFTHBODYIP). # LT3=no :0 * SPAMTAG ?? yes { LT3=yes } :0 * SBCONFIG ?? (Analyze|Debug) { LT3=no } :0 * LT3 ?? no * ! FIFTHBODYIP ?? ^000\.000\.000\.000$ * $ ! FIFTHBODYIP ?? ${FIRSTBODYIP} * $ ! FIFTHBODYIP ?? ${SECONDBODYIP} * $ ! FIFTHBODYIP ?? ${THIRDBODYIP} * $ ! FIFTHBODYIP ?? ${FOURTHBODYIP} { LT2=no LOCALIP=${FIFTHBODYIP} LOCALIPREGEXP=${FIFTHBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${FIFTHBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc # Check sixth body IP (SIXTHBODYIP). # LT3=no :0 * SPAMTAG ?? yes { LT3=yes } :0 * SBCONFIG ?? (Analyze|Debug) { LT3=no } :0 * LT3 ?? no * ! SIXTHBODYIP ?? ^000\.000\.000\.000$ * $ ! SIXTHBODYIP ?? ${FIRSTBODYIP} * $ ! SIXTHBODYIP ?? ${SECONDBODYIP} * $ ! SIXTHBODYIP ?? ${THIRDBODYIP} * $ ! SIXTHBODYIP ?? ${FOURTHBODYIP} * $ ! SIXTHBODYIP ?? ${FIFTHBODYIP} { LT2=no LOCALIP=${SIXTHBODYIP} LOCALIPREGEXP=${SIXTHBODYIPREGEXP} INCLUDERC=${SBDIR}/functions/check-cidr.rc :0 * LT2 ?? yes { LOCALTAG=yes SBLOG="C3R-${TESTNAME} (Body IP: ${SIXTHBODYIP})" INCLUDERC=${SBDIR}/functions/loglevel.rc } } # Test to see if Spam Threshold has been reached # INCLUDERC=${SBDIR}/functions/test-threshold.rc