[Mimedefang] Errors using action_quarantine

David F. Skoll dfs at roaringpenguin.com
Fri Jul 5 12:10:45 EDT 2002

On Fri, 5 Jul 2002, Adam Beatham wrote:

> Jul  5 11:10:02 goblin mimedefang-multiplexor: Slave 0 stderr: Can't call method "bodyhandle" on an undefined value at /usr/local/bin/mimedefang.pl line 681.

> This is the line in filter_begin

You cannot use action_quarantine in filter_begin, because there's no
$entity passed in.  You can only use it in filter.

If you want to quarantine the entire message, use this:

if ($virus_found) {
	action_quarantine_entire_message("Found a virus");
	action_bounce("Sorry, found a virus");

You can use action_discard instead of action_bounce if you like.


More information about the MIMEDefang mailing list