Koozali.org: home of the SME Server

Learn contrib questions

Offline jmarcosm

  • ***
  • 59
  • +0/-0
Learn contrib questions
« on: July 23, 2011, 03:01:45 PM »
I´m trying to implement this contrib in my email server but the explanation in the howto is not enough for a newbe like me!!

1) After I type this command: config setprop LearnAsSpam status enabled  I whant to check if this prop is set so I type:
config show Learn but I cant see nothing. How I can check this and the status of "Learn" ?

2) Somebody could please explain me the cron set of the Learn contrib with an example ? and how to expand the template?

Thank you very much in advance for your help

Marcos
...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Learn contrib questions
« Reply #1 on: July 23, 2011, 03:40:41 PM »
The Learn contrib is an automated way to implement the LearnAsSpam script, so reading up on that might help.

I also configure Bayesian Autolearning on all of my systems.

I read the specific 'config...' commands on the Learn Installation section to say:

1) use 'config setprop LearnAsSpam status enabled' to turn on "learn as spam"
2) use 'config setprop LearnAsHam status enabled" to turn on "learn as ham"
3) use 'config setprop Learn cron hourly' to schedule the 'LearnAsSpam' script to run hourly.  The script, when run, will then reference the other config settings to determine what to do.

To enable your changes to the cron schedule, you need to 'expand-template /etc/crontab'

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Learn contrib questions
« Reply #2 on: July 23, 2011, 03:47:11 PM »
jmarcosm

do this
config show LearnAsSpam

If you are not sure how to expand specific templates and restart specific services then use the master command, which is safe to do

signal-event post-upgrade
signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline jmarcosm

  • ***
  • 59
  • +0/-0
Re: Learn contrib questions
« Reply #3 on: July 23, 2011, 03:55:52 PM »
Thank you mmccarn and mary for your soon replay!

Mary: That is a very good option I will follow your advice! On the other hand when I type config show LearnAsSpam nothing appers in the console!

mmccarn: Should I guess that I have to install the LearnAsSpam scrpt first ? or is this sript already installed? The learn contrib should install this script ?
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Learn contrib questions
« Reply #4 on: July 23, 2011, 08:37:03 PM »
Mary: That is a very good option I will follow your advice! On the other hand when I type config show LearnAsSpam nothing appers in the console!
Do you perhaps mean server-manager? The console usually indicated the command line.

Should I guess that I have to install the LearnAsSpam scrpt first ? or is this sript already installed? The learn contrib should install this script ?
I assume the script comes with the contrib, if it doesn't the contrib is incomplete IMHO.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline jmarcosm

  • ***
  • 59
  • +0/-0
Re: Learn contrib questions
« Reply #5 on: July 23, 2011, 08:39:37 PM »
ok , just reintalled everything and now is working as should. Thank you very much for the help!!!

Marcos
...