|
|
| |
1. Problem with Spam Score |
|
Reply |
|
|
 Spencer | 2008-10-20 20:56:22 |
Great script! However, I'm having trouble getting the spam score returned. I'm testing on a Cpanel server running Exim with Spamassassin v3.2.4. Here is the array returned by PROCESS.
==================================
Array
(
[VERSION] => 1.1
[RESPONSE_CODE] => 0
[RESPONSE_STRING] => EX_OK
[CONTENT_LENGTH] => 2819
[REPORT] =>
Received: from localhost by XXX.XXXXX.net
with SpamAssassin (version 3.2.4);
Mon, 20 Oct 2008 13:48:45 -0700
Subject: [SPAM]
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on XXX.XXXXX.net
X-Spam-Level: ***********
X-Spam-Status: Yes, score=11.4 required=5.0 tests=EMPTY_MESSAGE,HEAD_LONG,
MISSING_DATE,MISSING_HB_SEP,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,
NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS,TVD_SPACE_RATIO shortcircuit=no
autolearn=no version=3.2.4
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_48FCEEAD.B571ECB1"
This is a multi-part message in MIME format.
------------=_48FCEEAD.B571ECB1
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
*** More content, just summarized ***
=========================
As you can see the score is in the text of the 'REPORT' key, but not in the 'SCORE'. Is my server returning a response different from yours?
Thank you,
Spencer
|
| |
2. Re: Problem with Spam Score |
|
Reply |
|
|
 Warble | 2008-10-20 21:36:30 - In reply to message 1 from Spencer |
Hi!
Interesting, with SpamAssassin 3.2.3-0 I'm getting it back, it's either that spamd isn't reporting it, or my regexp is flawed somehow.
Can you use the 'CHECK' command and post the results?
The other thing I'd try is to change 102:
From:
private $response = array();
To:
public $response = array();
and then post the result to:
print_r($instance->response);
This is the actual server response and will help me troubleshoot.
Thanks!
-Micah |
| |
3. Re: Problem with Spam Score |
|
Reply |
|
|
 Spencer | 2008-10-21 01:32:56 - In reply to message 2 from Warble |
Hi, here is the string being sent to the RegEx.
Spam: True ; 11.4 / 5.0
This is the array $instance->response;
Array
(
[0] => Spam: True ; 11.4 / 5.0
[1] =>
[2] =>
)
I'm still learning about regular expressions, I've run this through several of the utilities to "test" a regex without any success. Any help would be appreciated.
Thank you,
Spencer
|
| |
4. Re: Problem with Spam Score |
|
Reply |
|
|
 Warble | 2008-10-21 15:13:36 - In reply to message 3 from Spencer |
| Okay - that seems to be working. Can you forward me your code that implements the class? It's not clear yet why it's not working. |
|