Hi list , I need to do a trace of all the messages that spamassassin cataloged as spam yesterday, I have found a bash statement but I do not make it work, some idea that it may be failing, I am using centos 6 and spamassassin 3.4.2
grep "$(date +"%b %_d" -d "yesterday")" /var/log/maillog | grep 'score=[5]\.' | sed -e 's/^\(...............\).*\( score=...\).*\( from=[^ ]*\).*\( to=[^ ]*\).*/\1\2\4\3/' ; echo ; grep "$(date +"%b %_d" -d "yesterday")" /var/log/maillog | grep 'score=[567]\.' | sed -e 's/^\(...............\).*\( score=...\).*\( from=[^ ]*\).*\( to=[^ ]*\).*/\1\2\4\3/' spam score of my Spamassassin is 5. regards! -- rickygm http://gnuforever.homelinux.com