If Declude can call a script (or cscript.exe), I'd tend to write a vbs
script and call it with the complete command line. It can parse the
parameters, remove the *.* from the end and pass just the folder name to
clamdscan, which should cause it to scan the folder, and then pass back the
return code. I suppose it would be more efficient to write it in C or
something, but there's really nothing complicated about stripping a bit off
the last parameter. I've got plenty of code, but none that does exactly
this...

Bret

-----Original Message-----
I didn't see this in the last few months of list archives; if it's a 
FAQ, please yell at me. :)

I'm trying to get clamav-win32 to interface with my old creaky mail 
server (Imail, with the Declude mail filtering add-on). Unfortunately, 
this software is a bit dumb, and insists on giving me wildcards in its 
command line.

When clamdscan gets called, it gets called like this:

C:\progra~1\clamav\clamdscan.exe -options c:\temp\foo\*.*

Thanks to its *nix heritage, clamdscan dutifully tries to open a file 
named asterisk-dot-asterisk, which isn't there, everything fails, email 
disappears, you get the idea.

(Internally, Declude appears to pre-process the email, separating out 
any attachments and MIME-encoded bits, and puts everything in a 
temporary directory, then asks your antivirus scanner of choice to scan 
everything in that directory, hence the *.* . On Windows, that usually 
works...)

Does anyone know of a wrapper program (or a ClamAV option) to work 
around the fact that I'm being forced to deal with wildcards? I can 
probably write a wrapper, but I'm not that familiar with Windows 
development, and if someone else has already done it they've probably 
done it better than I would.

David Smith
MVN.net
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32

Reply via email to