Hello everyone,
        Please disregard my previous email with subject "Re: Clam antivirus and 
JAMES"
I was able to get it to work.

Here is my final code that works.

---------------------------------------------------------------------------------------
<mailet match="IsInfected=/usr/local/bin/clam.sh --no-summary -i -l %
reportFile% -r %targetDir%, /tmp/checkvirus/, true, 1, 0" 
class="ToProcessor">
                <processor> virus </processor>
        </mailet>
---------------------------------------------------------------------------------------

the reason it was not working before was because I misunderstood the syntax (I 
was frustrated that this was not work and was not thinking correctly). But 
thanks to Mike and some rethinking it works.

Earlier I was replacing %reportFile% and %targetDir% with a specific static 
dir path. and I had my exit code set to be only "1" (ie on virus found) which 
was causing the clamscan to cascade deep into the dir path, and if there were 
couple of email comming in simultaneously it would find the virus infected 
email eventually and think that everthing is infected and reject all email's. 

I have not replaced %reportFile% and %targetDir% and ran a test. In any case 
you really dont need to replace %reportFile% and %targetDir% and make sure 
that you atleast have 2 exit codes one IF FOUND and second for IF NOT FOUND

If its confusing let me know.

jay.


On Thursday 27 May 2004 14:52, jaysheel bhavsar wrote:
> Dear Russ,
>         First off thanks for replying back. I tried what you said and I
> even made the
> shell. But now I keep getting the following error
>
> -------------------------------------
> exception! javax.mail.MessagingException: Exception thrown;
>   nested exception is:
>         java.io.IOException: No such file or directory
> -----------------------------------------------------
>
> I have all the directory and its path correct and the permissions are set
> correctly as well. I am don't know what file or directory its looking for.
> I ran the command as it is in the mailet on the command line and it works
> with out any errors. May I did not get the syntax correctly?
>
> I am it does not find the %report file% which is scanvirus.txt. or could it
> be that the file is never downloaded?
>
> here is my mailet.
> ------------------------------------------------------
> <mailet match="IsInfected=/usr/local/bin/clam.sh --no-summary -i -l /tmp/
> checkvirus/scanvirus.txt -r /tmp/checkvirus, /cVirus/infected, true, 1"
> class="ToProcessor">
>                 <processor> virus </processor>
>         </mailet>
> -----------------------------------------------------
> I was wondering I could see that your mailet looks like.
>
> thanks
> jay.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to