So if I am reading this right.  If my filter rules never reset (or set) the
variable then when a Virus is found all messages handled by that slave
process will be viruses until an email is found for a valid domain that is
not a virus.

If I got it right, then yes, Danger x 3 is right (or worse).  Thanks for the
fix...

-Bob

>
> Danger, danger, danger!
>
> You're never initializing $FoundVirus to false.
>
> Change the top of your filter to read:
>
> sub filter_begin () {
>     if (stream_by_domain()) {
>         return;
>     }
>
>     $FoundVirus = 0;
>
>     if ((lc $Domain) eq "domain1.com") {
>

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to