Changeset 33 for etc


Ignore:
Timestamp:
06/05/08 12:08:54 (6 years ago)
Author:
eric
Message:
  • qtp-clean-spam - fixed to run final sync as vpopmail instead of root
File:
1 edited

Legend:

Unmodified
Added
Removed
  • etc/cron.hourly/qtp-clean-spam

    r14 r33  
    11#!/bin/sh 
    22 
     3# 06/06/08 - shubes <ejs@shubes.net> 
     4# fixed final sa-learn to run as vpopmail instead of root 
     5 
    36# 04/09/08 - Jake <jake@v2gnu.com> 
    4 # Changed trhe default time from 5 to 15 to better accomidate the users who have 
     7# Changed the default time from 5 to 15 to better accomidate the users who have 
    58# contacted me. 
    69 
     
    811# Fixed script to sudo to vpopmail before learning spam 
    912 
     13# 09/17/07 - Jake <jake@v2gnu.com> 
     14# The script was changed to no longer sync (the default) 
     15# until the script was all done, where it will then run a sync. 
     16 
    1017# 06/27/07 - Jake <jake@v2gnu.com> 
    11 # This script when installed as an hourly cron will look for spam messages in a user's 
    12 # Spam folder (see wiki.qmailtoaster.com for --define 'spambox 1') and automatically 
    13 # sa-learn from them, and then remove them if they are more than 5 days old. 
    14 # The 5-day old option can be defined/changed below. Portions of this script came from 
     18# This script when installed as an hourly cron will look for spam messages 
     19# in a user's Spam folder (see wiki.qmailtoaster.com for --define 'spambox 1') 
     20# and automatically sa-learn from them, and then remove them 
     21# if they are more than 5 days old. 
     22# The 5-day old option can be defined/changed below. 
     23# Portions of this script came from 
    1524# Erik Espinoza's <espinoza@forcenetworks.com> pruning script 
    16 # 09/17/07 - Jake <jake@v2gnu.com>    The script was changed to no longer sync (the default) 
    17 #  until the script was all done, where it will then run a sync. 
    1825 
    1926 
    20 # Varibale to define how old messages must be before being learned from and deleted 
     27# Varibale to define how old messages must be before being learned and deleted 
    2128TOO_OLD=15 
    2229 
     
    4451   done 
    4552fi 
    46 sa-learn --sync 
     53sudo -u vpopmail -H sa-learn --sync 
    4754 
    4855exit 0 
Note: See TracChangeset for help on using the changeset viewer.