Re: How to use SpamAssassin from PHP?

2007-05-09 Thread BG Mahesh
On 4/17/07, Derek Harding [EMAIL PROTECTED] wrote: On Tue, 2007-04-17 at 16:52 +0530, BG Mahesh wrote: hi I want to pass the comments/text entered by users on a form to SpamAssassin for approval. If it approves it only then I want to accept the text, else I want to inform the user that

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread Duncan Hill
On Wed, May 9, 2007 09:36, BG Mahesh wrote: We have tested this on http://cause.greynium.com/spamtest.php We have constructed a Mail header, concatenating $message to $header and passing the contents of $header to the code given above. We have installed the script from rulesemporium to

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread BG Mahesh
On 5/9/07, Duncan Hill [EMAIL PROTECTED] wrote: On Wed, May 9, 2007 09:36, BG Mahesh wrote: We have tested this on http://cause.greynium.com/spamtest.php We have constructed a Mail header, concatenating $message to $header and passing the contents of $header to the code given above. We

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread -- [ UxBoD ] --
To ensure all is working okay, why not take a existing SPAM message and construct the $message from that and test ? On Wed, 9 May 2007 14:40:52 +0530, BG Mahesh [EMAIL PROTECTED] wrote: On 5/9/07, Duncan Hill [EMAIL PROTECTED] wrote: On Wed, May 9, 2007 09:36, BG Mahesh wrote: We have

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread -- [ UxBoD ] --
I ran your first sample through SA here and got the following score :- X-Spam-Status: Yes, score=6.5 required=5.0 tests=BAYES_50,FRT_PENIS1, HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY,MISSING_DATE,MISSING_HB_SEP, MISSING_MID,NO_RECEIVED,NO_RELAYS autolearn=no version=3.2.0

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread Duncan Hill
On Wed, May 9, 2007 10:10, BG Mahesh wrote: On 5/9/07, Duncan Hill [EMAIL PROTECTED] wrote: On Wed, May 9, 2007 09:36, BG Mahesh wrote: We have tested this on http://cause.greynium.com/spamtest.php We have constructed a Mail header, concatenating $message to $header and passing the

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread BG Mahesh
The content should be reported as Spam. The score (when I run from command line is just about 1.0 and required is 5.0). The text in $message have very hardcore words. Shouldn't it be marked as spam? Are we formating the header correctly (i.e. each line is ending with \n)? 'hardcore' words

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread Anthony Peacock
Hi, BG Mahesh wrote: The content should be reported as Spam. The score (when I run from command line is just about 1.0 and required is 5.0). The text in $message have very hardcore words. Shouldn't it be marked as spam? Are we formating the header

Re: How to use SpamAssassin from PHP?

2007-05-09 Thread Duncan Hill
On Wed, May 9, 2007 10:10, BG Mahesh wrote: On 5/9/07, Duncan Hill [EMAIL PROTECTED] wrote: On Wed, May 9, 2007 09:36, BG Mahesh wrote: We have tested this on http://cause.greynium.com/spamtest.php We have constructed a Mail header, concatenating $message to $header and passing the

Re: How to use SpamAssassin from PHP?

2007-04-17 Thread maillist
BG Mahesh wrote: hi I want to pass the comments/text entered by users on a form to SpamAssassin for approval. If it approves it only then I want to accept the text, else I want to inform the user that the text is Spam and reject the user's comments. We use PHP and want to know how to

Re: How to use SpamAssassin from PHP?

2007-04-17 Thread Duncan Hill
On Tue, April 17, 2007 12:22, BG Mahesh wrote: hi I want to pass the comments/text entered by users on a form to SpamAssassin for approval. If it approves it only then I want to accept the text, else I want to inform the user that the text is Spam and reject the user's comments. We use

Re: How to use SpamAssassin from PHP?

2007-04-17 Thread Derek Harding
On Tue, 2007-04-17 at 16:52 +0530, BG Mahesh wrote: hi I want to pass the comments/text entered by users on a form to SpamAssassin for approval. If it approves it only then I want to accept the text, else I want to inform the user that the text is Spam and reject the user's comments.

How to use SpamAssassin from PHP?

2007-04-17 Thread BG Mahesh
hi I want to pass the comments/text entered by users on a form to SpamAssassin for approval. If it approves it only then I want to accept the text, else I want to inform the user that the text is Spam and reject the user's comments. We use PHP and want to know how to implement this. regards,

Re: How to use SpamAssassin from PHP?

2007-04-17 Thread Magnus Holmgren
On Tuesday 17 April 2007 04:44, Derek Harding wrote: TBH I'm not sure SA is really going to help you here since you'll have zero headers for it to work on meaning you're pretty much down to content URIBL checks. You can always construct a message header (I try to use the RFC 2822