I believe this code, merged into SPAMD, will do the event logging.
Haven't had a chance to test, because I'm Win9x impaired today

# insert at beginning of spamd
use Win32::EventLog; 
# Remember to
# a) remove current lines referring to Use SYS:SYSlog, GetLogSock
# b) change my $uid = getpwnam('nobody') to my $uid = 'nobody';
#
# Comment out current lines in logmsg routine and replace with
# these lines 
my $EventLog;
my %event=(
        'EventID',9999,
        'EventType',EVENTLOG_INFORMATION_TYPE,
        'Category',NULL,
        'Strings','@_',
        'Data','SpamAssassin',
);

$EventLog = new Win32::EventLog( 'SpamD' ) || die $!;
$EventLog->Report(\%event) || die $!;
$EventLog->Close;

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to