---
name: "Mail::MIMEDefang::Antivirus"
section: "3"
platform: "linux"
package: "mimedefang"
version: "3.6-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Mail::MIMEDefang::Antivirus"
---

# Mail::MIMEDefang::Antivirus(3)

Antivirus interface methods for email filters

## NAME

Mail::MIMEDefang::Antivirus - Antivirus interface methods for email filters

## DESCRIPTION

Mail::MIMEDefang::Antivirus are a set of methods that can be called from *mimedefang-filter* to scan with installed antivirus software the email message.

## METHODS

- message\_contains\_virus

  Method that scans a message using every installed virus scanner.

- entity\_contains\_virus

  Method that scans a `"MIME::Entity"` part using every installed virus scanner.

- initialize\_virus\_scanner\_routines

  Method that sets `@VirusScannerMessageRoutines` and `@VirusScannerEntityRoutines` to arrays of virus-scanner routines to call, based on installed scanners.

- run\_virus\_scanner

  Method that runs a virus scanner, collecting output in `$VirusScannerMessages`.
