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
cmd_user : Str
Command for tretreiving a user for the command line variable "%user%"
default_user : Str
User which will be used if none could be determined (if not set, the via "to" provided recipient will be used)
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
get_user
Determines the user for the command line script .. eg "dspam --user %user%"
get_user_by_cmd
Using the cmd_user command to determine any user/home
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.