Also please create an example script that can use all the variables which we can put into /contrib
The example script is attached...
-Calin
#!/bin/sh
# clam_email_alert.sh # Calin A. Culianu <calin at ajvar.org> # # A small sample script to email alerts. To use it, put the following in your # clam configuration file: # # VirusEvent /path/to/this/clam_email_alert.sh from-email to-email # # Where from-email is the email the alert comes from, and to-email is the # email address the alert should go to. # Modify these to suit your system MAIL_PROG=sendmail FROM=$1 TO=$2 # Uses the environment variables CLAM_VIRUSEVENT_VIRUSNAME # and CLAM_VIRUSEVENT_FILENAME ${MAIL_PROG} -f ${FROM} ${TO} <<EOF To: ${TO} Subject: Virus Alert (${CLAM_VIRUSEVENT_VIRUSNAME}) Warning! Clamd detected that the file: ${CLAM_VIRUSEVENT_FILENAME} Is infected with the virus: ${CLAM_VIRUSEVENT_VIRUSNAME} It is advised that you take appropriate action! EOF
_______________________________________________ http://lurker.clamav.net/list/clamav-devel.html