[PLUG] Reading/Writing to INBOX e-mail File

Derek Loree drl at drloree.com
Sat Oct 11 10:34:01 UTC 2003


On Sat, 2003-10-11 at 07:51, Bill Thoen wrote:
> I would like to write a simple filter in C to move obvious spam
> messages from my INBOX file to another folder before reading them
> with Pine.
> 
> The question I have is how do I lock the file while I'm screwing
> around with it, and what happens should another message arrive
> during that time? Or should I use a different technique altogether?

This is what procmail was designed for.  I've had very good results from
a bayesian (sp?) filter called spamprobe. Spamprobe only scores the
mail, procmail is used to feed the mail into spamprobe, then to sort it
into the different directories, depending on the scoring.

Good Luck,

Derek Loree





More information about the PLUG mailing list