SpamMonkey::Result - Result object for spam test


SpamMonkey documentation  | view source Contained in the SpamMonkey distribution.

Index


NAME

Top

SpamMonkey::Result - Result object for spam test

SYNOPSIS

Top

    if ($result->is_spam) {
        $result->rewrite;
        print $result->email->as_string;
    }

DESCRIPTION

Top

This class provides utility methods for dealing with the results of a SpamMonkey test.

METHODS

Top

is_spam

Returns true if the message scores more than the required threshold.

hits

Returns a list of the names of rules that matched.

describe_hits

Returns a list of the descriptions of rules that matched.

score

Returns the score for this test.


SpamMonkey documentation  | view source Contained in the SpamMonkey distribution.