Cron to Learn Spam

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

  1. bswinnerton

    bswinnerton New Member

    Hello,

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

    Code:
    /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:

    Code:
    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam /var/www/web*/user/*/Maildir/.Junk/cur
    Thanks!
     
  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?

    Thanks
     
  3. falko

    falko Super Moderator

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

    bswinnerton New Member

    perfect! it worked!

    Thanks Falko
     

Share This Page