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

Re: .forward file format for exim



Dave Sherohman muttered:
> On Sat, Aug 11, 2001 at 04:46:42PM +1000, Sam Varghese wrote:
> > #debian lists
> > if $h_From: contains "debian-user" or
> >    $h_To: contains "Debian-user"
> >    then
> >            save mail/debian
> > endif
> > 	   
> > theoretically, this should tell exim to sort incoming
> > mail into the files specified as per the exim documentation
> > at www.exim.org
> > 
> > since it doesn't work, i must be doing something wrong.
I think the problem is that the headers you're testing might not be the 
best choices due to how this list works. I was using

     if $h_Resent-Sender: contains "debian" then

but replaced with

     if $h_x-mailing-list matches "^<debian-(.*)@lists\\\\.debian\\\\.org>" then

which was suggested by Wayne Topa <wtopa@dmcom.net> in this list. Both
of them worked, I have no doubt that Wayne's works better than my
original effort.

My advice: locate and examine some sample .forward files. Many have
recently been posted to this list, some are in /usr/doc/exim and/or
/usr/doc/mutt, etc.

Also, after editing my .forward file, totally breaking it, and generally
complicating my life, I can heartily recommend that you take the exim 
docs seriously and test filters before you implement them.

HTH, Paul
-- 
Paul Mackinney
paul@mackinney.net <- Please note new email address



Reply to: