The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Decency::ContentFilter::Core::Cmd

DESCRIPTION

Base class for all command line filters. Including spam filter such as DSPAM and so on

CLASS ATTRIBUTES

cmd_check : Str

Check command.. normally the command which is used to filter a single mail.

cmd_learn_ham : Str

Learn HAM command..

cmd_learn_ham : Str

UNLearn HAM command.. (wrongly trained before)

cmd_learn_spam : Str

Learn new SPAM

cmd_unlearn_spam : Str

Unlearn wrongly trained SPAM

METHODS

pre_init

Add check params: cmd, check, train and untrain to list of check params

handle

Default handling for any content filter is getting info about the to be filterd file

cmd_filter

Pipes mail content through command line program and caches result

build_cmd

Can be overwritte by descendant module

Build cmd

AUTHOR

Ulrich Kautz <uk@fortrabbit.de>

COPYRIGHT

Copyright (c) 2010 the "AUTHOR" as listed above

LICENCSE

This library is free software and may be distributed under the same terms as perl itself.