-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 12 May 2002 21:20 pm, Jeremy Zawodny wrote: > That would be idea. Being able to just add a few lines of > code and link in libspamc or libspamassasin or whatever > would rock.
Indeed it would. Now, imagine for a second that we have two versions of libspam: The first would be a library version of spamc. Upon sending a message to it, the library would send the message to spamd and get a response back. The second version would be the 100% C version, except in a library format. So, at the user's option, the spamc-clone library could be installed to take advantage of easy rule changes (using the spamd Perl program) or the 100% C version could be used for speed purposes. Finally, if we defined a solid, stable API from day 1, other spam-scanning programs could offer compatibility. That kind of generic architecture would make it much easier to get the code into the main distribution of mainstream MTAs. A simple configure option of --with-libspam would be all that would be needed. As for the API, I'm thinking the following entry points would be essential (the names are not intended to be used verbatim): scan_message(char *s); // scan the message scan_message_locally(char *s); // scan the message w/o network report_message(char *s); // report the message as spam remove_markup(char *s); This is just food for thought. Enjoy! Richie Laager Wikstrom Telecom Internet - -- Richie Laager Wikstrom Telecom Internet -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE83zBqbfU6uV4fG84RAstoAJ4oNskWzQFvfqEcuc38R+62bCJgJACfQftr Pl0HdCtG180JX8dYKOiOiyU= =TbOW -----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