Re: detecting spam keywords with stripos
| From: | Per Jessen | Date: | Fri, 29 May 2009 17:11:19 +0000 |
| Subject: | Re: detecting spam keywords with stripos | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293352@lists.php.net to get a copy of this message | ||
Stuart wrote:
> I'm sure you could integrate SpamAssassin or similar because at the
> end of the day all those systems expect is a bunch of text.
Exactly. You can run SA as a daemon (spamd) and feed data to it using
spamc. Works very well. The full ruleset is probably too much, but it's
easy to "roll your own" too.
> If they require the headers of an email you can supply fake ones and
> remove any effect headers have on the score.
SA doesn't require them, and without them scoring would (obviously) be
based on the text only.
/Per
--
Per Jessen, Zürich (20.9°C)