Steven Manross wrote:
Have you had a chance to take a look at winspamc? It's written in VB, and may be what you need. I use a heavily modified version of it (for doing av scanning, sql prefs, etc.) and it works pretty well. Winspamc works like spamc, only for windows :-DThanks for the response.Well, I am calling the SA classes directly as perl via "PerlScript"... Similar to VB and how an ASP page is called from IIS (but byperlse.dll).EX: <SCRIPT LANGUAGE="PerlScript"> use Mail::SpamAssassin; Etc, etc. </SCRIPT> Namely, the SMTP Exchange interface ('Simple Mail Transfer Protocol' service) allows scripts to run in the form of an SMTP "Event Sink". Which hands me the message as an OLE Object.. I then make an RFC-formatted string out of the mail, and hand it off to SA in the form of: sub is_message_spam { my $message_txt = $_[0]; my $spamtest = $_[1];my $mail = $spamtest->parse($message_txt); my $status = $spamtest->check($mail);$mail = $status->get_message(); $_[2] = $mail; $_[3] = $status; $message_txt = $status->rewrite_mail(); $_[0] = $message_txt; if ($status->is_spam()) { return 1; } else { return 0; } } I'd presume that the STDERR call that I made should work, <grin>being that no one has corrected my code yet</grin>.. (it does work from a console window [doing spamassassin.bat -D <message.txt -- with a modded spamassassin.bat to remap STDERR], but not from the Event Sink). So, I'd agree with you that something (namely inetinfo.exe) could be taking STDERR away from something I have access to. There are a few articles in their support KB about IIS not allowing STDERR access to web pages, so, I am not surprised that a similar service (IIS-based SMTP) would have the same issues. I've tried a few KB articles to try to regain access to it, without avail.) So, I'm kind of lost on what to do to get the debug info (without modding the Distribution files, being that my SMTP service doesn't allow me access to it). I'm beginning to doubt that my problem is something I can overcome without a mod, and/or that someone wants to write/maintain a mod for it. :) Thanks, Steven P.S. I'd like to thank everyone involved in this project. SA is truly an amazing work of art; Well-crafted, maintained, and the user support community is top-notch as well. -----Original Message-----From: Loren Wilton [mailto:[EMAIL PROTECTED] Sent: Sunday, May 22, 2005 3:12 PMTo: users@spamassassin.apache.org Subject: Re: debug and STDERRI find it odd that MS would not give my access to STDERR, but it looks to be the case. :(You do usually have have access to stderr on a Windows platform. However, it is entirely possible that it has been hijacked by whatever the process is that is calling SA and doesn't end up where you think; OR, depending on how SA is started, SA might be a "non console" process, and will have stderr>NULL. The first thing I'd consider trying would be starting whatever is creating/calling SA with something like "2>logfile.txt" and see if you can get logging that way. If that doesn't work, and you can't freopen stderr to something else inside SA, than some other trick will probably be necessary. Loren
-- Thanks, JamesDR
smime.p7s
Description: S/MIME Cryptographic Signature