[Mimedefang] Virus Scanner Scanning attachment twice in 2.16?

David F. Skoll dfs at roaringpenguin.com
Sat Jul 20 21:59:01 EDT 2002


On Sun, 21 Jul 2002, Anthony Giggins wrote:

> I've just upgraded from 2.15 to 2.16 and now when I send a test virus
> through it appears its being scanned twice?

It's not being scanned twice.  It's just that virus-scanner
messages accumulate, so both message_contains_virus_trend and
entity_contains_virus_trend add to the messages.

To fix this, change your filter as follows:

    if (!$Handled) {
	if ((-s "./INPUTMSG") <= (1000 * 1024)) {
           $VirusFound = message_contains_virus_trend();

	   # ADD NEXT LINE TO CLEAR MESSAGES -- we'll pick them up with
	   # entity_contains_virus_trend()
	   $VirusScannerMessages = "";
	}
    }

--
David.




More information about the MIMEDefang mailing list