On Mon, 2009-03-23 at 15:44 +0100, Ivan Savcic wrote: > The goal is to put the regexes, which are being searched for in the > body of the mail, out of the configuration file, to avoid clutter and > to allow easy addition of new regexes. > But have you got a plot for compiling the regexes when they've been retrieved?
OTOH I have a similar plot. The idea is that mail from an exact address that I've previously sent mail to will not be spam. My system consists of two parts: - the first automatically records every address I've sent mail to. This uses a table in a PostgreSQL database which contains the address and a manually set flag to to show whether the address is within one of my domains. - the second part is an SA plugin and a rule. The plugin checks whether an email's sender address matches the database and is not one of my marked addresses. If this condition is met the email is whitelisted. The 'my domain' flag is needed to weed out cases where the sender address is forged using a valid address in my domain. I only filter incoming mail: this would not work if I filtered internal mail. I built the plugin by modifying the SentOutDB.pm plugin from http://whatever.frukt.org/mdf-sentoutdb.text.shtml Martin