NAME

Net::Mollom::ContentCheck

SYNOPSIS

The results of the mollom.checkContent XML-RPC call.

my $mollom = Net::Mollom->new(...);
my $check = $mollom->check_content(
    post_title => $title,
    post_body  => $body,
);

if( $check->is_spam ) {
    warn "someone's trying to sell us v1@grA!"
} elsif( $check->quality < .5 ) {
    warn "someone might be trying to flame us!"
}

METHODS

You should not construct an object of this class by yourself. Instead it should be done by Net::Mollom's call to check_content(). After you get one, these are the methods you can call.

is_spam

Returns true if the content sent was spam.

is_ham

Returns true if the content sent was not spam.

is_unsure

Returns true if Mollom isn't completely sure if this comment was spam or ham.

quality

A real number between 0 and 1 that's shows the quality of the content posted. 0 being the worst and 1 being the best.

session_id

The ID of the Mollom session that this check was part of. This can be saved and used later (ie, you need to call send_feedback for some content after some time in the future).