From fd2543489b53fe34a18b7204d6803bf527c0d198 Mon Sep 17 00:00:00 2001 From: Rob Funk Date: Tue, 24 Aug 2004 18:04:32 +0000 Subject: Update mold_remover to version 0.3, from http://sf.net/projects/moldremover svn path=/trunk/; revision=3933 --- contrib/README.mold_remover | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 contrib/README.mold_remover (limited to 'contrib/README.mold_remover') diff --git a/contrib/README.mold_remover b/contrib/README.mold_remover new file mode 100644 index 00000000..0f814885 --- /dev/null +++ b/contrib/README.mold_remover @@ -0,0 +1,31 @@ +Mold Remover + +Mold Remover is a short python script which integrates with fetchmail + and allows the user to specify the +number of days that mail should remain on the pop3 server before being +deleted. + +It is released under the GNU GPL . + +Usage: +Set up fetchmail to run with keep and uidl options. +Edit the mold_remover.py file to specify the mailserver address +and login/password details. Also specify the UIDL file created by +fetchmail (this is created automatically by fetchmail when uidl option +is selected in the fetchmailrc file usually at +/var/mail/.fetchmail-UIDL-cache). Remember to chmod the moldremover +script to 700 so that passwords cannot be read. Next, edit the field to +set how many days you want the mail to be left on the server. Lastly +create a script to run moldremover.py with python which can either be +run as a cron job or as part of your connection script. It is advisable +to stop fetchmail before mold remover is run and then to restart +fetchmail afterwards. Here is an example /etc/cron.daily/ script: + +#!/bin/bash +/etc/init.d/fetchmail stop >> /var/log/messages +/usr/bin/python /usr/local/bin/mold_remover.py >> /var/log/messages +/etc/init.d/fetchmail start >> /var/log/messages + +Please feel free to email me (jmstone@dsl.pipex.com) if you have any questions or bugfixes! + +James Stone -- cgit v1.2.3