Sg wrote:
Hi
Thanks for your reply. How to find the email body content(no header) spam value using any API (php, perl, python)?

Using SpamAssassin, you pretty much don't.

SpamAssassin very fundamentally expects to be working on email. I don't think you can get around that without a significant rewrite of the code.

The simplest thing would probably be to put a standaed "fake" header on the front of the web page to make it look like an email message when passed to SA. You could do this as simply as concatenating a small text file with the web page body into a temp file and then running spamassassin or spamc or spamd on that temp file and observing the result.

You could accomplish much the same thing using the Perl interface, supplying stock text for the mail header.

       Loren


Reply via email to