Hi,
I'm using the qmail scanner with f-prot. The full version of f-prot comes with a deamon for the scanning of files. Qmail scanner uses the command line f-prot program for scanning the email. Has anyone ever tried to get qmailscanner to use the daemon? Google couldn't tell me. It could result in a faster scan of the email.
It should be quite easy. Reading the man at http://www.f-prot.com/support/unix_manpages/f-protd.8.html sais that one should issue a request to http://localhost:10200/path/to/file. The daemon then comes back with a report in xml format. I tried it using lynx (as described there) and it works perfectly.
If this hasen't been done before, can anyone please point me to some examples of http requests in perl and working with the output of that? I allready looked at the qmailscanner code and it doesn't look that difficulty to me. I have don't know perl (yet) but do have plenty programming knowledge and i'm interested in trying to get this thing I thought up to work.
You can check out LWP (http://search.cpan.org/author/GAAS/libwww-perl-5.69/lib/LWP.pm)
for easy perl HTTP client programming tools, but I honestly don't know if/how this will benefit you. The fprotd man page says:
"The daemon scanner is designed to automatically update itself by exec()'ing its own binary when a new version is in place. The newly exec()'ed copy is forced to bind to another port since the outdated process stays alive for about half a minute. This is done to guarantee that there is always at least one daemon available at any given time.
--> Clients are expected to cycle through the port range to find a live daemon scanner when the one they were previously using dies."
so...since the daemon could be on any of 4 ports at any given time, you will need to program a client to try each until success. Thats a lot of time/overhead that -could- outweigh the seeming benefits of using a daemon. Not to mention you may have even more overhead of loading an XML parser if the data within the XML can't be simply extracted using a regex.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
