You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "pete@pwdk.com" <pe...@pwdk.com> on 2007/02/02 14:01:16 UTC
Spamassassin - Run from PHP script
Hi all,
I was wondering if it was possible to run spamassassin from a PHP script?
So it can be used to check the contents of a text string or plain text
file, and score it the same as it would score an email.
Thanks
Pete
Re: Spamassassin - Run from PHP script
Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Feb 02, 2007 at 01:01:16PM +0000, pete@pwdk.com wrote:
> I was wondering if it was possible to run spamassassin from a PHP script?
>
> So it can be used to check the contents of a text string or plain text
> file, and score it the same as it would score an email.
Well, it depends what you're going for here. If the text string or plain text
file is an email (headers and body), then sure, just call out appropriately
from php and run spamassassin/spamc, etc.
If you're asking if you can directly use the SA modules in PHP, then no,
unless there's some crazy "use perl modules in PHP" software out there that I
don't know about. :)
--
Randomly Selected Tagline:
"A handing out orgy..." - Prof. Brown