[Mimedefang] Stats and Syslog

David F. Skoll dfs at roaringpenguin.com
Wed Jul 24 15:45:01 EDT 2002


On Wed, 24 Jul 2002, J.P van Oyen wrote:

> I was trying to get the TCL Stats script to work and entered a 'rule' like
> this :
>          if ($category eq "virus") {
>              return action_quarantine($entity, "blahblahblah....");
>              syslog('warning', "blahblahblah...");
>          }

Ummm... you're returning before the syslog statement gets hit.  Try:

if ($category eq "virus") {
	syslog('warning', "blahblahblah...");
	return action_quarantine($entity, "blahblahblah...");
}

Regards,

David.




More information about the MIMEDefang mailing list