1# SPAMMER-CHECK-HEADER-IPS.RC 2# 3# Function to analyze the IPs from non-Received headers 4# to see if they belong to the specified spammer. 5# 6# Last updated: 10/07/2010 7 8LT2=no 9 10# Check X-Original IP and variants (XORIGINALIP). 11# 12:0 13* ! XORIGINALIP ?? ^000\.000\.000\.000$ 14{ 15 LT3=no 16 TESTIP=${XORIGINALIP} 17 INCLUDERC=${TESTIPS} 18 19 :0 20 * LT3 ?? ^yes$ 21 { 22 LT2=yes 23 SBLOG="C3T-Header IP ${XORIGINALIP} belongs to ${TESTNAME}" 24 INCLUDERC=${SBDIR}/functions/loglevel.rc 25 26 :0 27 * $ ${LOCALSCORE}^0 28 * 5^0 29 { LOCALSCORE=$= } 30 } 31 32 :0 33 * -9^0 34 * $ ${LOCALSCORE}^0 35 { LOCALTAG=yes } 36 37 :0 38 * SBCONFIG ?? ^(Analyze|Debug)$ 39 { LT2=no } 40} 41