Results 1 to 3 of 3

Thread: sa-learn script

  1. #1
    jimbo is offline Special Member
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    Default sa-learn script

    Hi all,

    I'm trying to write a couple of scripts that uses sa-learn to learn spam from messages in the "Junk" folder and one to "seed" the spamassassin db with know spam and ham messages. Just something quick and dirty until learning from the "Junk" folder is offered as a feature.

    The problem I'm having is figuring out the structure of the mbox layout in Zimbra. The previous script that worked really well with my old mail system looked like the following (simplified for display purposes):

    Code:
    #!/bin/bash
    /usr/bin/sa-learn  --spam -u $user /home/$user/Maildir/.SPAM-LEARN/cur
    exit 0
    So I'm assuming to work with zimbra it would be similar:

    Code:
    #!/bin/bash
    /opt/zimbra/bin/sa-learn  --spam -u $user /PATH_TO_ZIMBRA_USER_STORE/.Junk/cur
    exit 0
    Can anyone tell me the path to the msg store for each user? I don't think it's important that I know which user I'm dealing with, just where the "Junk" folder for each is located.

    Thanks!

    james

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Take a look at zmtrainsa I think it handles all this for you.

  3. #3
    jimbo is offline Special Member
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    Default Ok

    I'll check it out... thanks for the pointer!

    james

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 01:19 AM
  2. Changing Calendar Organizer script
    By snsparrish in forum Administrators
    Replies: 4
    Last Post: 05-02-2011, 04:41 AM
  3. OSE rotating backup script
    By reckless2k2 in forum Installation
    Replies: 1
    Last Post: 07-04-2007, 04:55 AM
  4. Warning: Unresponsive script
    By yetdog in forum Administrators
    Replies: 5
    Last Post: 04-03-2006, 12:15 PM
  5. ZimbraOsXAutoLauncher StartupItems Script & extras
    By s3nz3x in forum Installation
    Replies: 5
    Last Post: 11-28-2005, 06:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •