On Wed, 6 Aug 2003, Tomasz Kojm wrote: > > > > > > You should save all data to a temporary file and run cl_scandesc on it. > > > > Agreed, but i actually wanted to avoid it for performance reasons. > > Oh, I think it's a missed idea - what about really big attachments ?
Our system has a maximum attachment size, but i believe this idea is not that good :D > > > ok for the rarfail.rar file, but cl_perror() also returned some "ZIP > > module failure" while scanning some other files (it did work with ex1.c). > > Throught, in the above code, replacing this fd to pipe by a fd to file > > worked pretty well. > > descriptor has to be seek()able i see, and seek()ability of pipes are OS related ? Anyway, the performance issue i'm talking about is the following: some postifx will forward mails to some filterservers via a tcp socket, these servers will perform antispam & antivirus checks, and return the mail with enriched headers. I'm just afraid that writing all of these stuff to the disk would be load intensive, as we have a huge ammount of incoming mails per second. But I'll go this way and post to the list to tell you about how it runs. Thanks a lot for your help Tomasz kind regards Julien Benoist ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
