Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: slowboat on March 11, 2009, 10:54:49 PM
-
Hi Guys,
Does anyone know the format for the commands to config the db for smeserver-learn. The following is the example given, but not sure what it means:
smeserver-learn store all key who need in configuration db : (the > indicate that is a prop and not a key)
LearnAsSpam Config key for the spam learning part.
>status={enabled,disabled} Enable or not spam learning
>tag=$string Tag to place before subject to warn user of his message as been learn.
>dir=$string Name of folders where searching spam
>DeleteAfterLearn={enabled,disabled} delete message after learn instead of move in the user's junkmail folder.
LearnAsHam Config key for the ham learning part.
>status={enabled,disabled} Enable or not ham learning
>tag=$string Tag to place before subject to warn user of his message as been learn.
>dir=$string Name of folders where searching ham.
LearnInWL Config key for the spam of messages' senders in the whitelist learning part.
>status={enabled,disabled} Enable or not learning of messages' senders in the whitelist.
>tag=$string Tag to place before subject to warn user of his message as been learn.
>dir=$string Name of folders where searching message to learn in whitelist the sender address
Learn Config key witch affect script generally
>cron={none,hourly,daily,weekly,monthly} do the search never, hourly, daily, weekly or monthly.
E.g.:
config setprop LearnAsSpam status enabled
config setprop LearnInWL status enabled
thanks in advance
-
I read the wiki page to say that the following commands are valid:
config setprop LearnAsSpam status enabled
config setprop LearnAsSpam status disabled
config setprop LearnAsSpam tag "this is a sample tag string"
config setprop LearnAsSpam dir "LearnAsSpam Other_Spam"
config setprop LearnAsSpam DeleteAfterLearn enabled
config setprop LearnAsSpam DeleteAfterLearn disabled
config setprop LearnAsSpam status enabled
config setprop LearnAsSpam status disabled
config setprop LearnAsSpam tag "this is a sample tag string"
config setprop LearnAsHam dir "LearnAsHam Other_Ham"
config setprop LearnInWL status enabled
config setprop LearnInWL status disabled
config setprop LearnInWL tag "this is a sample tag string"
config setprop LearnInWL dir "WhiteList Other_WhiteList"
config setprop Learn cron none
config setprop Learn cron hourly
config setprop Learn cron daily
config setprop Learn cron weekly
config setprop Learn cron monthly
I don't know if the various "...dir..." commands support multiple values (as I have shown). If they do, I don't know if the separator is a space, a comma, a semicolon, or something else...
Likewise, the various "...tag..." commands may support multiple values, or may only support one value, may or may not support regular expressions, etc.
Note: I don't use 'Learn', so I cannot test these commands for you...
-
Thanks for responding, will try it out and let you know, thanks again. :P