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

Re: Subject: Re: filtering email via perl?



On Wed, Jun 06, 2001 at 11:47:10AM -0300, John R Lenton wrote:
> if you use exim, read /usr/share/doc/exim/filter.txt.gz
> 
> an example:
> 
>     # debian-user
>     if $message_headers contains debian-user@lists.debian.org then
>         save /home/john/Mail/Linux/debian-user
>         finish
>     endif
> 
> I find this infinitely better than procmail.

if you're subscribed to more debian lists you can use something like this:

if $h_x-mailing-list matches "^<debian-(.*)@lists\\\\.debian\\\\.org>" then 
  seen save $home/Mail/debian-$1 
endif
  
to sort every list into a mailbox with the listname. 

yours martin
-- 
GnuPG 1024D/3E8DCCC0 30DC 1D28 1D79 32F5 5E67  3ABB 28EE B35A 3E8D CCC0
   work: factline Krisper Fabro Harnoncourt OEG (www.factline.com)

Attachment: pgpKD_cPjfPaa.pgp
Description: PGP signature


Reply to: