NAME
barrendero - A mail spool directory cleaner
SYNOPSIS
barrendero [-V]
barrendero [-u] [-cconfig_file] [-f folder] [-n]
DESCRIPTION
Barrendero is a program designed to clean the mail spool directory to free disk space. It does this by looking in every mail folder in the spool dir and deleting the messages older than a certain age. The users can get a mail with the report of the actions done in their folders, consisting on a extract of the headers of the messages deleted and the messages soon to be deleted.
OPTIONS
-u Force to process a folder even if it does not belong to a user.
-cconfig_file Use this config file instead of /etc/barrendero.confç
-ffolder Not yet implemented. Maybe on version 1.1 :-)
-n Do not read any config file.
-V Print some info about the program (version, copyright) and quit.
CONFIG FILE
Most of the default options are hard-coded in the program. There is necesary to edit the code to customize the way it works.
The trigger age can be configured individually for each user, via a config file. This file has the following format:
#Lines begining with a hash are comments.
#Spool dir
SPOOLDIR=/var/spool/mail;
#Warning age
WARNAGE=15;
#Delete age
DELAGE=20;
#Admin (who has to receive the general report)
[email protected];
#Set the debug level
DEBUG=3
#Default languaje for reports
LANG=es;
#Send mail reports (1) or not to send them (0)
MAILREPORTS=1;
#Make backups of the mail folders?
# 0->No
# 1->Save the whole unmodified folder
# 2->Just save the deleted messages
MAKEBACKUP=2;
#Where to put the messages saved
SAVEDIR="/tmp";
#Folders smaller than this will not be inspected (size in bytes)
TRIGGERSIZE=300000;
#User Warning Delete Lang Trigger
joe 30 35 es 120000
#Other user than must be untouched!
foo 99999 99999 en 9999999999
WARNINGS
The use of this program is a bit dangerous. Please inspect the code before leting it delete your mail! The author accepts no responsability. I am personally using this program, but it may fail for you.
BUGS
Hey! This is version 1.0. ;-)) (you know, bug-free).
If you find any bug, report it to the author.
COPYRIGHT
Copyright (c) Eduardo Diaz Comellas
This program is distributed under the GNU license.
Comments to: [email protected]