-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 11 May 2002 09:09 am, Arpi wrote: > i'vs just uploaded the current snapshot of my version to: > ftp://ftp.mplayerhq.hu/spamassassin-c_0.2.tar.gz > > it is not usable in production yet - it is full of timers > and debug stuff, for testing and benchmarking purposes.
I've uploaded a version based on the above sources. This one has MAJOR changes. (See below.) You can find the code at: http://www.pyro.tv/spamassassin-c_0.3.tar.gz This code is still not up to par with the Perl version of SpamAssassin. (See below.) However, it is now closer. The program runs just like "spamassassin -P" or "spamc". Pipe a message in, get a flagged message out. However, the only flagging that is done is the addition of the X-Spam-Status and X-Spam-Level headers. (An X-Spam-Checker-Version header is added. As Craig mentioned on another thread, it's always good to have this so that we can aid users in debugging.) Still left to do: - - spam phrases - - few important eval() in C - - remove x-spam headers before processing - - pq/b64 decoding Items I've broken from Arpi's version: - - regexp optimizations gone - This was due to my addition of a script that pulls in the latest rules from a SpamAssassin (Perl) installation. I figured that it would be best to get the latest rulebase, and then make sure the Arpi's changes get merged back into the main SA rulebase. (Note: the strstr optimizations WERE NOT REMOVED.) Changes: * Created a Makefile * Copied the Perl License into the directory. * Created TODO file from the existing README file. * Created ChangeLog from the existing README file. * Created a basic README file with some details on the project. * Created a simple INSTALL file explaining how to install the program. * Moved duplicated code to config.h. * Created list_rules script: This script will print out the rules as found in various SpamAssassin config files. * Copied strstr rules to rules.strstr: This was needed because the list_rules script will overwrite the rules file each time it's run. * Added a copyright notice to all of the source files. * Wrapped all timing statments in #ifdef _TIMER ... #endif. * Wrapped all debugging statements in #ifdef DEBUG ... #endif. * Edited debugging statements to print to stderr instead of stdout. * Removed mbox support, as there was no locking. Now, the check program runs like "spamassassin -P" or "spamc". (NOTE: The check program will scan a file, instead of stdin, if the filename is passed as the first and only argument.) * Added an adjustable threshold. * Added code to generate the X-Spam-Status header. * Added code to generate the X-Spam-Level header. * Ran indent(3) over the .c source files. Enjoy! Richie Laager Wikstrom Telecom Internet -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE83eClbfU6uV4fG84RAiQeAKD5E/OHwH1OxLbU445TPhGVrjgynQCg/brk SfN3ycNCg+Nke+2f2BINEPc= =hw0v -----END PGP SIGNATURE----- _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk