]> Pileus Git - ~andy/fetchmail/blob - contrib/README.mold_remover
Fix typo repsonsible -> responsible.
[~andy/fetchmail] / contrib / README.mold_remover
1 Mold Remover
2
3 Mold Remover is a short python script which integrates with fetchmail 
4 <http://fetchmail.berlios.de/> and allows the user to specify the 
5 number of days that mail should remain on the pop3 server before being 
6 deleted. 
7
8 It is released under the GNU GPL <http://www.gnu.org/copyleft/gpl.html>.
9
10 Usage: 
11 Set up fetchmail to run with keep and uidl options.
12 Edit the mold_remover.py file to specify the mailserver address
13 and login/password details. Also specify the UIDL file created by
14 fetchmail (this is created automatically by fetchmail when uidl option
15 is selected in the fetchmailrc file usually at
16 /var/mail/.fetchmail-UIDL-cache). Remember to chmod the moldremover
17 script to 700 so that passwords cannot be read. Next, edit the field to
18 set how many days you want the mail to be left on the server. Lastly
19 create a script to run moldremover.py with python which can either be
20 run as a cron job or as part of your connection script. It is advisable
21 to stop fetchmail before mold remover is run and then to restart
22 fetchmail afterwards. Here is an example /etc/cron.daily/ script:
23
24 #!/bin/bash
25 /etc/init.d/fetchmail stop >> /var/log/messages
26 /usr/bin/python /usr/local/bin/mold_remover.py >> /var/log/messages
27 /etc/init.d/fetchmail start >> /var/log/messages
28
29 Please feel free to email me (jmstone@dsl.pipex.com) if you have any questions or bugfixes!
30
31 James Stone