OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: A question about advanced filtering

From: Laurent Darrambide (ldarrambidegmail.com)
Date: Sat Apr 02 2005 - 03:54:03 CST


As none as answered, maybe my question was stupid, unclear or
interesting.

I try it in a different way.
In the advanced filter setup, is there a way to discard a mail under
certain conditions.

Example: in the simple filter setup, I do virus scanning via clamav.
 as return code, which discards the mail.

 AV="`${CLAMAV} --disable-summary --stdout - < in.$$`"
 RESULT=$?
 if [ ${RESULT} = 1 ];then
 echo "Virus trouve: " >> /tmp/virus
 exit 0
 fi

 It doesn't work in the advanced filter setup, because I receive
 an unwanted mail via port 10026 anyway.

 Thanks for reading and helping as return code, which discards the mail.
 

--
Laurent Darrambide, France
GNU/Linux Debian Sid, kernel 2.6.10 - Mutt 1.5.6