[Mimedefang] quarantine - part.?.body

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Mon Sep 27 14:09:53 EDT 2004


David F. Skoll wrote:
> On Mon, 27 Sep 2004 Matthew.van.Eerde at hbinc.com wrote:
> 
>> 3) The name of the file as it was quarantined (??? PART.1.BODY
>> usually...) 
> 
> It is: "$QuarantineSubdir/PART.$QuarantineCount.BODY"

Thanks! I'll try something like
# in mimedefang-filter

sub filter($$$$) {
...
my $host = `hostname`;
chomp ($host);

# This sets $QuarantineSubdir
my $qdir = get_quarantine_dir();

# $QuarantineCount hasn't been ++'d yet but it will be
my $bodypartnumber = ($QuarantineCount || 0) + 1;

my $msg = "unquarantine $host $qdir/PART.$bodypartnumber.BODY \"$fname\"";

action_quarantine($entity, $msg);
...
}

This together with an appropriately written unquarantine.bat (including a call to pscp.exe) should do the trick.

Matthew.van.Eerde at hbinc.com                      805.964.4554 x902
Hispanic Business Inc./HireDiversity.com         Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"



More information about the MIMEDefang mailing list