[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail filtering techniques



On Thu, 27 Jan 2000, Ethan Benson wrote:

> I am wondering what different methods people here are using to filter 
> your mail?   (ie each mailing list to its own mailbox or other such 
> techniques of dealing with several high volume lists)

I fetch mail from my IP's POP3 mailserver using fetchmail. The fetched
mail is then handed to Exim to filter and deliver. Simple and elegant.

Here is my ~/.fetchmailrc 

poll pop.clara.net
protocol pop3
username scgf is gsmh on this system
password xxxxxxx

Exim gets involved in filtering mail into folders because I have a
~/.forward file like this:

# Exim filter  <<== do not edit or remove this line!

if error_message then finish endif
logfile $home/eximfilter.log

	if $header_to: contains "sah1" 
	then deliver scott
	
	elif $h_x-mailing-list matches "^<debian-(.*)@lists\\.debian\\.org>"
	then seen save $home/Mail/Debian 

	elif $h_subject: contains "CLOS_Linux"
	then seen save $home/Mail/Corel

	elif $h_subject: contains "dvduk"
	then seen save $home/Mail/DVD

	elif $h_subject: contains "Debian-uk"
	then seen save $home/Mail/Debian
	
	elif $h_subject: contains "Pilot-Unix"
	then seen save $home/Mail/Pilot-Unix

	elif $h_subject: contains "AWL"
	then seen save $home/Mail/Applix
	
	endif


The second rule is neat because it catches all the Debian mailing list
messages.

I used to use procmail to deliver mail, but I prefer the Exim approach.




--
Phillip Deackes
Debian Linux 


Reply to: