[Mimedefang] Filter Question

Robert Covell rcovell at rolet.com
Thu Aug 21 11:56:02 EDT 2003


I have a custom filter that I use to scan only certain domains for viruses.
But at times it seems to scan domains that are in the list.  Can anyone see
something that is wrong with the following or know another reason this might
be happening.

    if ((lc $Domain) eq "domain1.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain2.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain3.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain4.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain5.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain6.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    } elsif ((lc $Domain) eq "domain7.com") {
        my($code, $category, $action) = message_contains_virus();
        $FoundVirus = ($category eq "virus");
    }

BTW, I am on MD 2.31.  I know their is a newer version but I can't remember
what has changed in the filter layout and haven't had time to research it,
so until then 2.31 is it.

-Bob




More information about the MIMEDefang mailing list