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
="o">="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:fetchmail-friends%40cmb.is-a-geek.org"> <META NAME="robots" CONTENT="index,nofollow"> <LINK REL="Previous" HREF="007711.html"> <LINK REL="Next" HREF="007713.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[fetchmail] Patch for IMAP idling where idling is unsupported </H1> <B>Chris Boyle </B> <A HREF="mailto:fetchmail-friends%40cmb.is-a-geek.org" TITLE="[fetchmail] Patch for IMAP idling where idling is unsupported">fetchmail-friends@cmb.is-a-geek.org </A><BR> <I>21 Jul 2003 18:20:43 +0100</I> <P><UL> <LI> Previous message: <A HREF="007711.html">[fetchmail] Problem - truncated messages </A></li> <LI> Next message: <A HREF="007713.html">[fetchmail] Patch for IMAP idling where idling is unsupported </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#7705">[ date ]</a> <a href="thread.html#7705">[ thread ]</a> <a href="subject.html#7705">[ subject ]</a> <a href="author.html#7705">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>Here's a patch I've written: where IDLE is unavailable, it uses periodic NOOP commands instead (every 28 seconds). Important behavioural change: the option &quot;idle&quot; will now always result in *some* form of idle. I think I read somewhere that some servers will unilaterally send status updates if you just hold the connection open, i.e. NOOPs would be unnecessary, but that doesn't seem to be the case anywhere I've tried. In any case, this patch copes with updates both as a response to the NOOPs and unilaterally sent between them. It functions exactly like normal idling (N.B. like normal idling, it is single-folder only), and hopefully includes all the appropriate changes to the documentation. Enjoy. :-) <A HREF="http://cmb.is-a-geek.org/downloads/fetchmail-6.2.2+noopidle.diff.gz">http://cmb.is-a-geek.org/downloads/fetchmail-6.2.2+noopidle.diff.gz</A> -- Chris Boyle - <A HREF="http://people.debian.org/~cmb/">http://people.debian.org/~cmb/</A> GPG: B7D86E0F, MSN: <A HREF="mailto:shortcipher@hotmail.com">shortcipher@hotmail.com</A>, ICQ: 24151961, AIM: kerneloops, Yahoo: kerneloops, IRC: cmb on freenode.net </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI> Previous message: <A HREF="007711.html">[fetchmail] Problem - truncated messages </A></li> <LI> Next message: <A HREF="007713.html">[fetchmail] Patch for IMAP idling where idling is unsupported </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#7705">[ date ]</a> <a href="thread.html#7705">[ thread ]</a> <a href="subject.html#7705">[ subject ]</a> <a href="author.html#7705">[ author ]</a> </LI> </UL> </body></html>