perl spamassassin. -e2160 < SAMPLE-SPAM.TXT > KZSAMPLE-SPAM-OUT.TXT
This works but incurs LIB$SPAWN's process creation overhead in addition to re-compilation of the perl scripts each time around (and this set of scripts takes five to ten seconds to compile). This is more overhead than I'd like and I'm looking to cut out as much of it as possible. Ideally it would be done without creating a sub process and with only one loading of the perl interpreter and one compilation of the scripts for the life of a server process. (The server process will invoke SPAMASSASSIN many times in its life, once for each mail message processed.)
Your best bet is to attempt to get spamd (the daemonized spamassassin) running under VMS, rather than trying to embed a Perl interpreter in a VMS app. Embedding Perl is non-trivial even under *nix-like operating systems. spamc (the client portion of spamd) is a very simple C program, and is much more likely to be portable. Your server process will then run spamc for each messages and communicate with a resident spamd...
HTH
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748
