Cron to Learn Spam

Discussion in 'Installation/Configuration' started by bswinnerton, Nov 3, 2008.

  1. bswinnerton

    bswinnerton New Member


    I'm trying to set up a cron tab to run so that it reads everyone's "Junk" folder and then runs the command:

    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam
    And then once it is done, removes the emails from the junk folder.

    However, What I am wondering, is there any variable or way to specify all email users' folders?

    For example:

    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam /var/www/web*/user/*/Maildir/.Junk/cur
  2. bswinnerton

    bswinnerton New Member

    Falko, I just read on another post you said this:

    How would I go about that? Or is there an easier way of doing it?

  3. falko

    falko Super Moderator ISPConfig Developer

    I think this could work. I'd try it.
  4. bswinnerton

    bswinnerton New Member

    perfect! it worked!

    Thanks Falko

Share This Page