Steve Kemp > Blog-Spam-1.0.2 > Blog::Spam::Plugin::size

Download:
Blog-Spam-1.0.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Blog::Spam::Plugin::size - Size-Test submitted comments.

ABOUT ^

This plugin is designed to discard comments which are too small, or too large.

By default this plugin will do nothing - it must be explicitly enabled by the site which is submitting the comment for testing, via the use of optional parameters submitted to the Blog::Spam::Server.

The options are discussed as part of the Blog::Spam::API, in the section TESTING OPTIONS.

If supplied this plugin will test the submitted comment against the appropriate values:

min-size

The minimum acceptible word-count for a valid comment.

max-size

The maximum acceptible word-count for a valid comment.

If the submitted comment is either too small, or too large, then it will be rejected and marked as SPAM.

AUTHOR ^

Steve Kemp

http://www.steve.org.uk/

LICENSE ^

Copyright (c) 2008-2010 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.

syntax highlighting: