Changes

Jump to navigation Jump to search
7 bytes added ,  21:57, 28 August 2014
Line 227: Line 227:     
  <nowiki>DAYS=1; echo -n "Days of email to scan [$DAYS]: "; read NEWDAYS; \
 
  <nowiki>DAYS=1; echo -n "Days of email to scan [$DAYS]: "; read NEWDAYS; \
find /home/e-smith/files/users -name *$(config getprop SystemName):* -ctime -$DAYS -exec egrep -H "^Received:\ from\ " "{}" \; |\
+
find /home/e-smith/files/users -name *$(config get SystemName):* -ctime -$DAYS -exec egrep -H "^Received:\ from\ " "{}" \; |\
grep -v "192.168.1." |\
+
grep -v "$(config get LocalIP)" |\
 
egrep "HELO|EHLO" |\
 
egrep "HELO|EHLO" |\
 
awk -F"[():]" '{ print $1 "\t" $7}'
 
awk -F"[():]" '{ print $1 "\t" $7}'

Navigation menu