Re: [Exim] HELP i cant get filters to work right

Góra strony
Delete this message
Reply to this message
Autor: Dave C.
Data:  
Dla: RICHARD REYNOLDS
CC: exim-users
Temat: Re: [Exim] HELP i cant get filters to work right
Well, upon a brief reading of the filter.txt manual, it looks like you
need to put an entire condition in the parenteses. The example given
uses '$thisaddress' to refer to the address being tested:

if foranyaddress $h_to: ( $thisaddress matches ^\\d{8}@ ) then

If you are only testing against one address, you could skip the
'foranyaddress' function, and just use something like the following..

if "$h_to $h_cc $h_reply_to" contains "pc-daw@???"
then save $home/DAV/pcdaw
endif

Also notice that the syntax to complete an 'if' is 'endif' not 'end if'


On 8 Dec 2000, RICHARD REYNOLDS wrote:

>
> this is my .forward the complete file
>
> # Exim filter <<== do not edit or remove this line Line1
>
>
> #if foranyaddress $h_to:,$h_cc:,$h_reply-to: ()                               

>
> #if foranyaddress $h_to:,$h_cc:,$h_reply-to: ()                               

>
>
>
> if foranyaddress $h_to:,$h_cc:,$h_reply-to: ("pc-daw@???")              

>
> then save $home/DAV/pcdaw                                                     

>
> elif foranyaddress $h_to:,$h_cc:,$h_reply-to: ("pc-daw@???")       

>
> then save $home/DAV/pcdaw                                                     

>
> end if                                                                        

>
> finish
>
> and this is what shows up in the logs, is there anyone that can tell me
> what im doing wrong??? I will be adding more like this if i can get this
> to work, there is only 1 user, i just want the email saved to my
> /home/richard/mail/ into the files where they belong
>
> 2000-12-08 14:59:09 144WTt-0003Or-00 == richard@localhost D=userforward
> defer (-11): error in filter file: unrecognized
> condition word "" near line 6 of filter file
>
>
>                                    ,'' '',
>      Richard Reynolds              ( 0 0 )                La Mesa , Ca 
> ________________________________oOOo-(_)-oOO___________________________________

>
>                        E-Mail: Richard.Reynolds@???
>                           IRC: Dalnet #!rsr, rsman

>
>
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>


--