I have a multi-threaded C program that I would like to "hook-up" to spamassassin that I would like to use as a replacement for spamc/spamd. The problem is that I have little experience with Perl and I would like to "spawn" spamassassin (obviously a Perl module) and send a message to it from within the C threads and have spamasssin return the results to the correct C thread, and I don't know the best way to do that.
I was also thinking that it might be best to have a small Perl script launch the C program first so that "Perl" is already loaded and running so *maybe* each thread won't have to spawn a new, complete instance of Perl to run spamassassin. Maybe I could gain some speed that way? Anyone have suggestions for such a "good multi-platform" C line or snippet to launch spamassassin with? I'm also guessing that spamassassin is not "thread-safe" (and probably can't be run in multiple threads anyway) and that I'll have to synchronize access to spamassassin across threads? Which brings up another point: Is spamassassin "process safe"? i.e., can I run multiple instance of spamassassin on the same machine at the same time so spamassassin won't get confused or trip over the other messages (or itself) that are getting processed at the same time? Thanks! Joe ------------------------------------------------------- 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/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk