[clamav-win32] How to handle wildcards with clamdscan?
David E. Smith
dave at mvn.net
Fri Feb 15 17:54:58 CET 2008
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
More information about the clamav-win32
mailing list