aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/README.mold_remover
blob: 09adddc0c38b49bcf61aab233bc0df2c70044a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Mold Remover

Mold Remover is a short python script which integrates with fetchmail 
<http://fetchmail.berlios.de/> 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 <http://www.gnu.org/copyleft/gpl.html>.

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
Demon Internet's SDPS, or CRAM-MD5 authentication a la RFC2195. Fetchmail supports end-to-end encryption with OpenSSL, do read README.SSL for details on fetchmail's configuration and README.SSL-SERVER for server-side requirements. NOTE! To be compatible with earlier releases, fetchmail 6.3's default behaviour is more relaxed than dictated by the standard - add options such as --sslcertck to tighten certificate checking. Portability ----------- The fetchmail code was developed under Linux, but has also been extensively tested under the BSD variants, AIX, HP-UX versions 9 and 10, SunOS, Solaris, NEXTSTEP, OSF 3.2, IRIX, and Rhapsody. It should be readily portable to other Unix variants and Unix-like operating systems (it uses GNU autoconf). It has been ported to Cygwin, LynxOS and BeOS and will build there without special action. It has also been ported to QNX; to build under QNX, see the header comments in the Makefile. It is reported to build and run under AmigaOS. Further reading --------------- The INSTALL file describes how to configure and install fetchmail. See the distribution files FEATURES for a full list of features, NEWS for detailed information on recent changes, NOTES for design notes, and TODO for a list of things that still need doing. If you want to hack on this code, a list of known bugs and to-do items can be found in the file todo.html. Status, source code ------------------- The fetchmail code appears to be stable and free of bugs affecting normal operation (that is, retrieving from POP3 or IMAP in single-drop mode and forwarding via SMTP to sendmail). You can get the code from the fetchmail home page: http://www.fetchmail.info/ http://fetchmail.berlios.de/ Enjoy! -- esr, ma